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

Open in the picker

Dark Blue in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#00008b
RGBrgb(0 0 139)
RGB legacyrgb(0, 0, 139)
RGB percentrgb(0% 0% 54.51%)
HSLhsl(240 100% 27.3%)
HSL legacyhsl(240, 100%, 27.3%)
HSV / HSBhsv(240, 100%, 54.5%)
HWBhwb(240 0% 45.5%)
Nearest namedarkblue
CMYKcmyk(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.

OKLChoklch(28.782% 0.19944 264.052)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(28.782% -0.02067 -0.19837)
CIE LChlch(13.016% 83.544 301.364)
CIE Lablab(13.016% 43.483 -71.336)
Display P3color(display-p3 0 0 0.5221)
Rec. 2020color(rec2020 0.0503 0.0132 0.4695)
srgb-linearcolor(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 — sRGBvec3(0.0, 0.0, 0.545)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.0, 0.0, 0.258)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.0, 0.0, 0.545, 1.0)
GLSL vec4 — linearvec4(0.0, 0.0, 0.258, 1.0)
GLSL ivec3ivec3(0, 0, 139)
HLSL float3 — sRGBfloat3(0.0, 0.0, 0.545)
HLSL float3 — linearfloat3(0.0, 0.0, 0.258)
HLSL float4 — sRGBfloat4(0.0, 0.0, 0.545, 1.0)
HLSL half4 — sRGBhalf4(0.0, 0.0, 0.545, 1.0)
WGSL vec3f — sRGBvec3f(0.0, 0.0, 0.545)
WGSL vec4f — sRGBvec4f(0.0, 0.0, 0.545, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.0, 0.0, 0.258)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew 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 Color32new Color32(0, 0, 139, 255)
Unreal FLinearColorFLinearColor(0.0f, 0.0f, 0.2582f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(0, 0, 139, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0, 0, 0.545, 1)
Flutter ColorColor(0xFF00008B)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(0, 0, 139)
SwiftUI ColorColor(red: 0, green: 0, blue: 0.545)
UIKit UIColorUIColor(red: 0, green: 0, blue: 0.545, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x00008B
0x hex (ARGB)0xFF00008B
Array 0–1[0, 0, 0.545]
Array 0–255[0, 0, 139]
Decimal integer139

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.

PairingWCAG 2 ratioLevelAPCASuitable for
Dark Blue on white15.30:1AAALc 100Body text at any size
Dark Blue on black1.37:1FailLc 0Not 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 match
  • navyΔEok 0.020
  • midnightblueΔEok 0.061
  • mediumblueΔEok 0.116
  • indigoΔEok 0.134
  • darkslateblueΔEok 0.159