CSS named colour
Royal Blue
#4169e1
A CSS named colour: royalblue is valid anywhere a colour is expected.
- RGB
- rgb(65 105 225)
- HSL
- 225°, 73%, 57%
- OKLCh
- 56.0% 0.188 266.4
Royal Blue in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #4169e1 | |
|---|---|---|
| RGB | rgb(65 105 225) | |
| RGB legacy | rgb(65, 105, 225) | |
| RGB percent | rgb(25.49% 41.18% 88.24%) | |
| HSL | hsl(225 72.7% 56.9%) | |
| HSL legacy | hsl(225, 72.7%, 56.9%) | |
| HSV / HSB | hsv(225, 71.1%, 88.2%) | |
| HWB | hwb(225 25.5% 11.8%) | |
| Nearest name | royalblue | |
| CMYK | cmyk(71.1%, 53.3%, 0%, 11.8%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(55.985% 0.18823 266.4)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(55.985% -0.01182 -0.18786) | |
| CIE LCh | lch(46.8% 68.989 284.937) | |
| CIE Lab | lab(46.8% 17.783 -66.658) | |
| Display P3 | color(display-p3 0.2904 0.4077 0.8525) | |
| Rec. 2020 | color(rec2020 0.3116 0.3576 0.8295) | |
| srgb-linear | color(srgb-linear 0.0529 0.1413 0.7529)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.2082 0.1666 0.7336) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.255, 0.412, 0.882)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.053, 0.141, 0.753)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.255, 0.412, 0.882, 1.0) | |
| GLSL vec4 — linear | vec4(0.053, 0.141, 0.753, 1.0) | |
| GLSL ivec3 | ivec3(65, 105, 225) | |
| HLSL float3 — sRGB | float3(0.255, 0.412, 0.882) | |
| HLSL float3 — linear | float3(0.053, 0.141, 0.753) | |
| HLSL float4 — sRGB | float4(0.255, 0.412, 0.882, 1.0) | |
| HLSL half4 — sRGB | half4(0.255, 0.412, 0.882, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.255, 0.412, 0.882) | |
| WGSL vec4f — sRGB | vec4f(0.255, 0.412, 0.882, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.053, 0.141, 0.753) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.255f, 0.412f, 0.882f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(65, 105, 225, 255) | |
| Unreal FLinearColor | FLinearColor(0.0529f, 0.1413f, 0.7529f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(65, 105, 225, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.255, 0.412, 0.882, 1) | |
| Flutter Color | Color(0xFF4169E1)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(65, 105, 225) | |
| SwiftUI Color | Color(red: 0.255, green: 0.412, blue: 0.882) | |
| UIKit UIColor | UIColor(red: 0.255, green: 0.412, blue: 0.882, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x4169E1 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF4169E1 | |
| Array 0–1 | [0.255, 0.412, 0.882] | |
| Array 0–255 | [65, 105, 225] | |
| Decimal integer | 4286945 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Royal Blue on white | 4.85:1 | AA | Lc 73 | Headings and large text |
| Royal Blue on black | 4.33:1 | AA Large | Lc 29 | Not usable for text |
Royal Blue text on a white background
Royal Blue text on a black background
White text on Royal Blue
Black text on Royal Blue
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#eef8ff
- 100#dfeeff
- 200#c7dcff
- 300#a5c4ff
- 400#7ba4ff
- 500#5682fc
- 600#4067db
- 700#2e4fba
- 800#203c9d
- 900#152c83
- 950#06125a
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#5e84e8
- Tint 2#7c9def
- Tint 3#9cb6f4
- Tint 4#bccff9
- Tint 5#dde7fd
- Shade 1#3151b0
- Shade 2#223a82
- Shade 3#132456
- Shade 4#06102f
- Shade 5#01020b
Colours that work with Royal Blue
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #966d00
- #cb3532
- #008f20
- #007ebe
- #8254d3
Closest CSS names
royalblueexact matchslateblueΔEok 0.064mediumslateblueΔEok 0.078dodgerblueΔEok 0.102steelblueΔEok 0.105mediumpurpleΔEok 0.116