#21310F#21310F

#21310F is a dark, muted yellow-green. Relative luminance 0.026; OKLCH L 29.0% C 0.059 H 130.4°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#21310F
RGBrgb(33, 49, 15)
HSLhsl(88, 53%, 13%)
HSVhsv(88, 69%, 19%)
CMYKcmyk(32.7%, 0%, 69.4%, 80.8%)
CIE-LABlab(18.16, -13.69, 19.17)
CIE-LCHlch(18.16, 23.55, 125.54°)
OKLaboklab(28.98% -0.0383 0.045)
OKLCHoklch(28.98% 0.059 130.4)
XYZxyz(1.8117, 2.5544, 0.8494)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21310F #1F0F31
analogous
#31300F #21310F #10310F
triadic
#21310F #0F2131 #310F21
tetradic
#21310F #0F3130 #1F0F31 #310F10
square
#21310F #0F3130 #1F0F31 #310F10
split-complementary
#21310F #0F1031 #300F31
monochromatic
#101707 #101707 #21310F #41601D #608F2C

Accessibility & contrast

On white

13.90
#21310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21310F
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21310F#FFFFFF#000000##FFFFFF
##21310F1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332D0B
Deuteranopia (green-blind)
#312C11
Tritanopia (blue-blind)
#222F2A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21310f;
/* rgb */ color: rgb(33, 49, 15);
/* oklch */ color: oklch(29.0% 0.059 130.4);
Tailwind
colors: {
  custom: {
    50: '#5d694e',
    500: '#21310f',
    950: '#000000',
  },
}
SCSS
$custom: #21310f;
$custom-light: #5d694e;
$custom-dark: #000000;
JSON
{
  "hex": "#21310f",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 88.235,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.28983,
    "c": 0.0591,
    "h": 130.4
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#21310F
secondary
#4C316B
accent
#4BDD90
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040602
muted
#797A78

Preview Lab

Preview with #21310F

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

Preview Lab → · Contrast checker → · Palette generator →

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