#21310A#21310A

#21310A is a dark, moderate yellow-green. Relative luminance 0.025; OKLCH L 28.9% C 0.064 H 129.0°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#21310A
RGBrgb(33, 49, 10)
HSLhsl(85, 66%, 12%)
HSVhsv(85, 80%, 19%)
CMYKcmyk(32.7%, 0%, 79.6%, 80.8%)
CIE-LABlab(18.11, -14.22, 21.44)
CIE-LCHlch(18.11, 25.73, 123.57°)
OKLaboklab(28.92% -0.0403 0.0499)
OKLCHoklch(28.92% 0.064 129)
XYZxyz(1.7803, 2.5418, 0.6839)
Luminance0.0254 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21310A #1A0A31
analogous
#312E0A #21310A #0E310A
triadic
#21310A #0A2131 #310A21
tetradic
#21310A #0A312E #1A0A31 #310A0E
square
#21310A #0A312E #1A0A31 #310A0E
split-complementary
#21310A #0A0E31 #2E0A31
monochromatic
#111905 #111905 #21310A #436414 #65971F

Accessibility & contrast

On white

13.92
#21310A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#21310A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21310A
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21310A#FFFFFF#000000##FFFFFF
##21310A1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D05
Deuteranopia (green-blind)
#322C0D
Tritanopia (blue-blind)
#222E29
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21310a;
/* rgb */ color: rgb(33, 49, 10);
/* oklch */ color: oklch(28.9% 0.064 129.0);
Tailwind
colors: {
  custom: {
    50: '#5e694c',
    500: '#21310a',
    950: '#000000',
  },
}
SCSS
$custom: #21310a;
$custom-light: #5e694c;
$custom-dark: #000000;
JSON
{
  "hex": "#21310a",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 10
  },
  "hsl": {
    "h": 84.615,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.28919,
    "c": 0.06417,
    "h": 129
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#21310A
secondary
#45296E
accent
#3FE985
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #21310A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#21310A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva