CSS named colour

Dark Red

#8b0000

A CSS named colour: darkred is valid anywhere a colour is expected.

RGB
rgb(139 0 0)
HSL
0°, 100%, 27%
OKLCh
40.0% 0.164 29.2

Open in the picker

Dark Red in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#8b0000
RGBrgb(139 0 0)
RGB legacyrgb(139, 0, 0)
RGB percentrgb(54.51% 0% 0%)
HSLhsl(0 100% 27.3%)
HSL legacyhsl(0, 100%, 27.3%)
HSV / HSBhsv(0, 100%, 54.5%)
HWBhwb(0 0% 45.5%)
Nearest namedarkred
CMYKcmyk(0%, 100%, 100%, 45.5%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(39.986% 0.16408 29.234)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(39.986% 0.14318 0.08013)
CIE LChlch(28.758% 66.926 39.753)
CIE Lablab(28.758% 51.453 42.798)
Display P3color(display-p3 0.4982 0.0902 0.0551)
Rec. 2020color(rec2020 0.3853 0.0803 0.019)
srgb-linearcolor(srgb-linear 0.2582 0 0)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.1065 0.0549 0.005)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(0.545, 0.0, 0.0)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.258, 0.0, 0.0)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.545, 0.0, 0.0, 1.0)
GLSL vec4 — linearvec4(0.258, 0.0, 0.0, 1.0)
GLSL ivec3ivec3(139, 0, 0)
HLSL float3 — sRGBfloat3(0.545, 0.0, 0.0)
HLSL float3 — linearfloat3(0.258, 0.0, 0.0)
HLSL float4 — sRGBfloat4(0.545, 0.0, 0.0, 1.0)
HLSL half4 — sRGBhalf4(0.545, 0.0, 0.0, 1.0)
WGSL vec3f — sRGBvec3f(0.545, 0.0, 0.0)
WGSL vec4f — sRGBvec4f(0.545, 0.0, 0.0, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.258, 0.0, 0.0)

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

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

Raw valuesPacked integers and plain arrays.

0x hex0x8B0000
0x hex (ARGB)0xFF8B0000
Array 0–1[0.545, 0, 0]
Array 0–255[139, 0, 0]
Decimal integer9109504

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 Red on white10.01:1AAALc 91Body text at any size
Dark Red on black2.10:1FailLc 12Not usable for text

Dark Red text on a white background

Dark Red text on a black background

White text on Dark Red

Black text on Dark Red

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#fff0eb
  • 100#ffe2db
  • 200#ffcabf
  • 300#ffa798
  • 400#fd7e6d
  • 500#dd5c4d
  • 600#bd4336
  • 700#9e2d23
  • 800#831b13
  • 900#6c0a06
  • 950#460000

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#a33d32
  • Tint 2#b86559
  • Tint 3#cc8b81
  • Tint 4#dfb1aa
  • Tint 5#f0d8d4
  • Shade 1#6c0000
  • Shade 2#4e0000
  • Shade 3#320000
  • Shade 4#190000
  • Shade 5#040000

Colours that work with Dark Red

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #005461
  • #005b11
  • #27399e
  • #850045
  • #733300

Closest CSS names

  • darkredexact match
  • maroonΔEok 0.025
  • brownΔEok 0.082
  • firebrickΔEok 0.098
  • saddlebrownΔEok 0.102
  • siennaΔEok 0.141