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
Dark Red in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #8b0000 | |
|---|---|---|
| RGB | rgb(139 0 0) | |
| RGB legacy | rgb(139, 0, 0) | |
| RGB percent | rgb(54.51% 0% 0%) | |
| HSL | hsl(0 100% 27.3%) | |
| HSL legacy | hsl(0, 100%, 27.3%) | |
| HSV / HSB | hsv(0, 100%, 54.5%) | |
| HWB | hwb(0 0% 45.5%) | |
| Nearest name | darkred | |
| CMYK | cmyk(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.
| OKLCh | oklch(39.986% 0.16408 29.234)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(39.986% 0.14318 0.08013) | |
| CIE LCh | lch(28.758% 66.926 39.753) | |
| CIE Lab | lab(28.758% 51.453 42.798) | |
| Display P3 | color(display-p3 0.4982 0.0902 0.0551) | |
| Rec. 2020 | color(rec2020 0.3853 0.0803 0.019) | |
| srgb-linear | color(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 — sRGB | vec3(0.545, 0.0, 0.0)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.258, 0.0, 0.0)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.545, 0.0, 0.0, 1.0) | |
| GLSL vec4 — linear | vec4(0.258, 0.0, 0.0, 1.0) | |
| GLSL ivec3 | ivec3(139, 0, 0) | |
| HLSL float3 — sRGB | float3(0.545, 0.0, 0.0) | |
| HLSL float3 — linear | float3(0.258, 0.0, 0.0) | |
| HLSL float4 — sRGB | float4(0.545, 0.0, 0.0, 1.0) | |
| HLSL half4 — sRGB | half4(0.545, 0.0, 0.0, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.545, 0.0, 0.0) | |
| WGSL vec4f — sRGB | vec4f(0.545, 0.0, 0.0, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.258, 0.0, 0.0) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new 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 Color32 | new Color32(139, 0, 0, 255) | |
| Unreal FLinearColor | FLinearColor(0.2582f, 0.0f, 0.0f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(139, 0, 0, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.545, 0, 0, 1) | |
| Flutter Color | Color(0xFF8B0000)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(139, 0, 0) | |
| SwiftUI Color | Color(red: 0.545, green: 0, blue: 0) | |
| UIKit UIColor | UIColor(red: 0.545, green: 0, blue: 0, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x8B0000 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF8B0000 | |
| Array 0–1 | [0.545, 0, 0] | |
| Array 0–255 | [139, 0, 0] | |
| Decimal integer | 9109504 |
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 Red on white | 10.01:1 | AAA | Lc 91 | Body text at any size |
| Dark Red on black | 2.10:1 | Fail | Lc 12 | Not 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 matchmaroonΔEok 0.025brownΔEok 0.082firebrickΔEok 0.098saddlebrownΔEok 0.102siennaΔEok 0.141