#21310D#21310D

#21310D is a dark, moderate yellow-green. Relative luminance 0.025; OKLCH L 29.0% C 0.061 H 129.8°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#21310D
RGBrgb(33, 49, 13)
HSLhsl(87, 58%, 12%)
HSVhsv(87, 73%, 19%)
CMYKcmyk(32.7%, 0%, 73.5%, 80.8%)
CIE-LABlab(18.14, -13.92, 20.15)
CIE-LCHlch(18.14, 24.49, 124.65°)
OKLaboklab(28.96% -0.0392 0.0471)
OKLCHoklch(28.96% 0.061 129.8)
XYZxyz(1.7981, 2.5490, 0.7780)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21310D #1D0D31
analogous
#312F0D #21310D #0F310D
triadic
#21310D #0D2131 #310D21
tetradic
#21310D #0D312F #1D0D31 #310D0F
square
#21310D #0D312F #1D0D31 #310D0F
split-complementary
#21310D #0D0F31 #2F0D31
monochromatic
#101806 #101806 #21310D #42611A #629227

Accessibility & contrast

On white

13.91
#21310D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21310D
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21310D#FFFFFF#000000##FFFFFF
##21310D1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D09
Deuteranopia (green-blind)
#312C10
Tritanopia (blue-blind)
#222F29
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21310d;
/* rgb */ color: rgb(33, 49, 13);
/* oklch */ color: oklch(29.0% 0.061 129.8);
Tailwind
colors: {
  custom: {
    50: '#5e694d',
    500: '#21310d',
    950: '#000000',
  },
}
SCSS
$custom: #21310d;
$custom-light: #5e694d;
$custom-dark: #000000;
JSON
{
  "hex": "#21310d",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 13
  },
  "hsl": {
    "h": 86.667,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.28955,
    "c": 0.06125,
    "h": 129.8
  },
  "luminance": 0.02549
}

Semantic roles & 50–950 ramp

primary
#21310D
secondary
#492E6C
accent
#47E18B
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #21310D

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

Preview Lab → · Contrast checker → · Palette generator →

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