#4169E1
royalblue
#4169E1 is a blue colour. In RGB it is 65 red, 105 green and 225 blue, which converts to a hue of 225 degrees, 73% saturation and 57% lightness. It is one of the named CSS colours, written as royalblue in stylesheets.
Color values
| HEX | #4169E1 |
|---|---|
| RGB | rgb(65, 105, 225) |
| HSL | hsl(225, 73%, 57%) |
| HSV | hsv(225, 71%, 88%) |
| CMYK | cmyk(71%, 53%, 0%, 12%) |
Contrast and accessibility
Against white the contrast ratio is 4.85:1, and against black it is 4.33:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
| Background | Ratio | Normal text | Large text |
|---|---|---|---|
| White | 4.85:1 | AA | AAA |
| Black | 4.33:1 | Fail | AA |
Tints and shades
Lighter tints move #4169E1 toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #4169E1; |
|---|---|
| CSS rgb() | color: rgb(65 105 225); |
| Tailwind | bg-[#4169e1] |
| SwiftUI | Color(red: 0.255, green: 0.412, blue: 0.882) |
| Android | Color.parseColor("#4169E1") |