#282A20#282A20

#282A20 is a dark, near-neutral yellow-green. Relative luminance 0.022; OKLCH L 28.0% C 0.018 H 116.8°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#282A20
RGBrgb(40, 42, 32)
HSLhsl(72, 14%, 15%)
HSVhsv(72, 24%, 16%)
CMYKcmyk(4.8%, 0%, 23.8%, 83.5%)
CIE-LABlab(16.56, -3.14, 6.25)
CIE-LCHlch(16.56, 7.00, 116.69°)
OKLaboklab(27.96% -0.0081 0.016)
OKLCHoklch(27.96% 0.018 116.8)
XYZxyz(1.9637, 2.2113, 1.6896)
Luminance0.0221 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A20 #22202A
analogous
#2A2720 #282A20 #232A20
triadic
#282A20 #20282A #2A2028
tetradic
#282A20 #202A27 #22202A #2A2023
square
#282A20 #202A27 #22202A #2A2023
split-complementary
#282A20 #20232A #27202A
monochromatic
#11110D #11110D #282A20 #494D3A #6A6F55

Accessibility & contrast

On white

14.56
#282A20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#282A20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A20
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A20#FFFFFF#000000##FFFFFF
##282A201.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B291F
Deuteranopia (green-blind)
#2B2920
Tritanopia (blue-blind)
#292927
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #282a20;
/* rgb */ color: rgb(40, 42, 32);
/* oklch */ color: oklch(28.0% 0.018 116.8);
Tailwind
colors: {
  custom: {
    50: '#62635b',
    500: '#282a20',
    950: '#000000',
  },
}
SCSS
$custom: #282a20;
$custom-light: #62635b;
$custom-dark: #000000;
JSON
{
  "hex": "#282a20",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 32
  },
  "hsl": {
    "h": 72,
    "s": 13.514,
    "l": 14.51
  },
  "oklch": {
    "l": 0.27956,
    "c": 0.01793,
    "h": 116.8
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#282A20
secondary
#4E4B5B
accent
#71B67F
background
#F5F5F5
surface
#EAEAE9
border
#C6C6C5
text
#050504
muted
#797979

Preview Lab

Preview with #282A20

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

Preview Lab → · Contrast checker → · Palette generator →

#282A20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva