#21540F#21540F

#21540F is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.6% C 0.112 H 139.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#21540F
RGBrgb(33, 84, 15)
HSLhsl(104, 70%, 19%)
HSVhsv(104, 82%, 33%)
CMYKcmyk(60.7%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.11, -30.84, 32.86)
CIE-LCHlch(31.11, 45.06, 133.19°)
OKLaboklab(39.59% -0.085 0.0737)
OKLCHoklch(39.59% 0.112 139.1)
XYZxyz(3.8836, 6.6981, 1.5401)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21540F #420F54
analogous
#44540F #21540F #0F5420
triadic
#21540F #0F2154 #540F21
tetradic
#21540F #0F4454 #420F54 #54200F
square
#21540F #0F4454 #420F54 #54200F
split-complementary
#21540F #200F54 #540F44
monochromatic
#0A1A05 #0D2006 #21540F #358818 #4ABC22

Accessibility & contrast

On white

8.98
#21540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#21540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21540F
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21540F#FFFFFF#000000##FFFFFF
##21540F1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C02
Deuteranopia (green-blind)
#504816
Tritanopia (blue-blind)
#1C5147
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #21540f;
/* rgb */ color: rgb(33, 84, 15);
/* oklch */ color: oklch(39.6% 0.112 139.1);
Tailwind
colors: {
  custom: {
    50: '#638553',
    500: '#21540f',
    950: '#000000',
  },
}
SCSS
$custom: #21540f;
$custom-light: #638553;
$custom-dark: #000000;
JSON
{
  "hex": "#21540f",
  "rgb": {
    "r": 33,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 104.348,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39591,
    "c": 0.11245,
    "h": 139.1
  },
  "luminance": 0.06698
}

Semantic roles & 50–950 ramp

primary
#21540F
secondary
#76318E
accent
#3BEDBE
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #21540F

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

Preview Lab → · Contrast checker → · Palette generator →

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