CSS named colour

Maroon

#800000

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

RGB
rgb(128 0 0)
HSL
0°, 100%, 25%
OKLCh
37.7% 0.155 29.2

Open in the picker

Maroon in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#800000
RGBrgb(128 0 0)
RGB legacyrgb(128, 0, 0)
RGB percentrgb(50.2% 0% 0%)
HSLhsl(0 100% 25.1%)
HSL legacyhsl(0, 100%, 25.1%)
HSV / HSBhsv(0, 100%, 50.2%)
HWBhwb(0 0% 49.8%)
Nearest namemaroon
CMYKcmyk(0%, 100%, 100%, 49.8%)Naive conversion. Real print work needs an ICC profile.

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

OKLChoklch(37.669% 0.15458 29.234)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(37.669% 0.13489 0.07549)
CIE LChlch(26.165% 62.49 39.133)
CIE Lablab(26.165% 48.473 39.439)
Display P3color(display-p3 0.4584 0.0798 0.0472)
Rec. 2020color(rec2020 0.3478 0.0671 0.0159)
srgb-linearcolor(srgb-linear 0.2159 0 0)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.089 0.0459 0.0042)

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

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

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

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

Raw valuesPacked integers and plain arrays.

0x hex0x800000
0x hex (ARGB)0xFF800000
Array 0–1[0.502, 0, 0]
Array 0–255[128, 0, 0]
Decimal integer8388608

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
Maroon on white10.95:1AAALc 93Body text at any size
Maroon on black1.92:1FailLc 10Not usable for text

Maroon text on a white background

Maroon text on a black background

White text on Maroon

Black text on Maroon

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#f98171
  • 500#d96051
  • 600#b9473a
  • 700#9b3227
  • 800#802018
  • 900#69110b
  • 950#440000

Tints and shades

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

  • Tint 1#993b30
  • Tint 2#b06357
  • Tint 3#c6897f
  • Tint 4#dbb0a8
  • Tint 5#edd7d3
  • Shade 1#630000
  • Shade 2#480000
  • Shade 3#2e0000
  • Shade 4#160000
  • Shade 5#030000

Colours that work with Maroon

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

  • #004d5a
  • #00540e
  • #233492
  • #7b003f
  • #6a2e00

Closest CSS names

  • maroonexact match
  • darkredΔEok 0.025
  • brownΔEok 0.105
  • saddlebrownΔEok 0.114
  • firebrickΔEok 0.123
  • siennaΔEok 0.159