#21542E#21542E

#21542E is a dark, moderate green. Relative luminance 0.069; OKLCH L 40.0% C 0.084 H 149.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#21542E
RGBrgb(33, 84, 46)
HSLhsl(135, 44%, 23%)
HSVhsv(135, 61%, 33%)
CMYKcmyk(60.7%, 0%, 45.2%, 67.1%)
CIE-LABlab(31.49, -26.66, 17.20)
CIE-LCHlch(31.49, 31.73, 147.18°)
OKLaboklab(40.03% -0.0722 0.0425)
OKLCHoklch(40.03% 0.084 149.5)
XYZxyz(4.2904, 6.8609, 3.6824)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21542E #542147
analogous
#2D5421 #21542E #215447
triadic
#21542E #2E2154 #542E21
tetradic
#21542E #212D54 #542147 #544721
square
#21542E #212D54 #542147 #544721
split-complementary
#21542E #472154 #54212D
monochromatic
#09160C #102816 #21542E #328046 #44AC5E

Accessibility & contrast

On white

8.85
#21542E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#21542E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21542E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21542E#FFFFFF#000000##FFFFFF
##21542E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554D2B
Deuteranopia (green-blind)
#4E4830
Tritanopia (blue-blind)
#15524B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #21542e;
/* rgb */ color: rgb(33, 84, 46);
/* oklch */ color: oklch(40.0% 0.084 149.5);
Tailwind
colors: {
  custom: {
    50: '#628467',
    500: '#21542e',
    950: '#000000',
  },
}
SCSS
$custom: #21542e;
$custom-light: #628467;
$custom-dark: #000000;
JSON
{
  "hex": "#21542e",
  "rgb": {
    "r": 33,
    "g": 84,
    "b": 46
  },
  "hsl": {
    "h": 135.294,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.40025,
    "c": 0.0838,
    "h": 149.5
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#21542E
secondary
#884978
accent
#54B3D3
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#050B06
muted
#7A7C7A

Preview Lab

Preview with #21542E

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

Preview Lab → · Contrast checker → · Palette generator →

#21542E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva