#21340B#21340B

#21340B is a dark, moderate yellow-green. Relative luminance 0.028; OKLCH L 29.8% C 0.068 H 130.9°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#21340B
RGBrgb(33, 52, 11)
HSLhsl(88, 65%, 12%)
HSVhsv(88, 79%, 20%)
CMYKcmyk(36.5%, 0%, 78.8%, 79.6%)
CIE-LABlab(19.24, -15.82, 22.35)
CIE-LCHlch(19.24, 27.38, 125.30°)
OKLaboklab(29.84% -0.0446 0.0515)
OKLCHoklch(29.84% 0.068 130.9)
XYZxyz(1.9156, 2.8034, 0.7567)
Luminance0.0280 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21340B #1E0B34
analogous
#34330B #21340B #0D340B
triadic
#21340B #0B2134 #340B21
tetradic
#21340B #0B3433 #1E0B34 #340B0D
square
#21340B #0B3433 #1E0B34 #340B0D
split-complementary
#21340B #0B0D34 #330B34
monochromatic
#101905 #101905 #21340B #416716 #619920

Accessibility & contrast

On white

13.46
#21340B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21340B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21340B
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21340B#FFFFFF#000000##FFFFFF
##21340B1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373006
Deuteranopia (green-blind)
#342E0E
Tritanopia (blue-blind)
#22312C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21340b;
/* rgb */ color: rgb(33, 52, 11);
/* oklch */ color: oklch(29.8% 0.068 130.9);
Tailwind
colors: {
  custom: {
    50: '#5e6b4c',
    500: '#21340b',
    950: '#000000',
  },
}
SCSS
$custom: #21340b;
$custom-light: #5e6b4c;
$custom-dark: #000000;
JSON
{
  "hex": "#21340b",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 11
  },
  "hsl": {
    "h": 87.805,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.29842,
    "c": 0.06815,
    "h": 130.9
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#21340B
secondary
#4B2A71
accent
#40E88E
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #21340B

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

Preview Lab → · Contrast checker → · Palette generator →

#21340B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva