CSS named colour
Dark Blue
#00008b
A CSS named colour: darkblue is valid anywhere a colour is expected.
- RGB
- rgb(0 0 139)
- HSL
- 240°, 100%, 27%
- OKLCh
- 28.8% 0.199 264.1
Dark Blue in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #00008b | |
|---|---|---|
| RGB | rgb(0 0 139) | |
| RGB legacy | rgb(0, 0, 139) | |
| RGB percent | rgb(0% 0% 54.51%) | |
| HSL | hsl(240 100% 27.3%) | |
| HSL legacy | hsl(240, 100%, 27.3%) | |
| HSV / HSB | hsv(240, 100%, 54.5%) | |
| HWB | hwb(240 0% 45.5%) | |
| Nearest name | darkblue | |
| CMYK | cmyk(100%, 100%, 0%, 45.5%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(28.782% 0.19944 264.052)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(28.782% -0.02067 -0.19837) | |
| CIE LCh | lch(13.016% 83.544 301.364) | |
| CIE Lab | lab(13.016% 43.483 -71.336) | |
| Display P3 | color(display-p3 0 0 0.5221) | |
| Rec. 2020 | color(rec2020 0.0503 0.0132 0.4695) | |
| srgb-linear | color(srgb-linear 0 0 0.2582)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.0466 0.0186 0.2454) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.0, 0.0, 0.545)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.0, 0.0, 0.258)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.0, 0.0, 0.545, 1.0) | |
| GLSL vec4 — linear | vec4(0.0, 0.0, 0.258, 1.0) | |
| GLSL ivec3 | ivec3(0, 0, 139) | |
| HLSL float3 — sRGB | float3(0.0, 0.0, 0.545) | |
| HLSL float3 — linear | float3(0.0, 0.0, 0.258) | |
| HLSL float4 — sRGB | float4(0.0, 0.0, 0.545, 1.0) | |
| HLSL half4 — sRGB | half4(0.0, 0.0, 0.545, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.0, 0.0, 0.545) | |
| WGSL vec4f — sRGB | vec4f(0.0, 0.0, 0.545, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.0, 0.0, 0.258) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.0f, 0.0f, 0.545f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(0, 0, 139, 255) | |
| Unreal FLinearColor | FLinearColor(0.0f, 0.0f, 0.2582f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(0, 0, 139, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0, 0, 0.545, 1) | |
| Flutter Color | Color(0xFF00008B)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(0, 0, 139) | |
| SwiftUI Color | Color(red: 0, green: 0, blue: 0.545) | |
| UIKit UIColor | UIColor(red: 0, green: 0, blue: 0.545, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x00008B | |
|---|---|---|
| 0x hex (ARGB) | 0xFF00008B | |
| Array 0–1 | [0, 0, 0.545] | |
| Array 0–255 | [0, 0, 139] | |
| Decimal integer | 139 |
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 |
|---|---|---|---|---|
| Dark Blue on white | 15.30:1 | AAA | Lc 100 | Body text at any size |
| Dark Blue on black | 1.37:1 | Fail | Lc 0 | Not usable for text |
Dark Blue text on a white background
Dark Blue text on a black background
White text on Dark Blue
Black text on Dark Blue
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#edf8ff
- 100#deeeff
- 200#c4ddff
- 300#a2c5ff
- 400#76a5ff
- 500#4b82ff
- 600#3467e0
- 700#224fbf
- 800#143ba2
- 900#0a2b88
- 950#00115d
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#183ea1
- Tint 2#4266b6
- Tint 3#6e8cca
- Tint 4#9db2dd
- Tint 5#cdd8ef
- Shade 1#00006c
- Shade 2#00004e
- Shade 3#000032
- Shade 4#000019
- Shade 5#000004
Colours that work with Dark Blue
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #3d2600
- #5d0002
- #003800
- #00304e
- #370079
Closest CSS names
darkblueexact matchnavyΔEok 0.020midnightblueΔEok 0.061mediumblueΔEok 0.116indigoΔEok 0.134darkslateblueΔEok 0.159