#28331D#28331D

#28331D is a dark, muted yellow-green. Relative luminance 0.029; OKLCH L 30.4% C 0.040 H 130.1°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#28331D
RGBrgb(40, 51, 29)
HSLhsl(90, 28%, 16%)
HSVhsv(90, 43%, 20%)
CMYKcmyk(21.6%, 0%, 43.1%, 80%)
CIE-LABlab(19.67, -9.53, 12.48)
CIE-LCHlch(19.67, 15.70, 127.38°)
OKLaboklab(30.42% -0.026 0.0309)
OKLCHoklch(30.42% 0.04 130.1)
XYZxyz(2.2806, 2.9074, 1.6032)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28331D #281D33
analogous
#33331D #28331D #1D331D
triadic
#28331D #1D2833 #331D28
tetradic
#28331D #1D3333 #281D33 #331D1D
square
#28331D #1D3333 #281D33 #331D1D
split-complementary
#28331D #1D1D33 #331D33
monochromatic
#0F140B #0F140B #28331D #475A33 #658149

Accessibility & contrast

On white

13.28
#28331D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#28331D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28331D
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28331D#FFFFFF#000000##FFFFFF
##28331D1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35301B
Deuteranopia (green-blind)
#332F1E
Tritanopia (blue-blind)
#29312D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28331d;
/* rgb */ color: rgb(40, 51, 29);
/* oklch */ color: oklch(30.4% 0.040 130.1);
Tailwind
colors: {
  custom: {
    50: '#626a59',
    500: '#28331d',
    950: '#000000',
  },
}
SCSS
$custom: #28331d;
$custom-light: #626a59;
$custom-dark: #000000;
JSON
{
  "hex": "#28331d",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 29
  },
  "hsl": {
    "h": 90,
    "s": 27.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.30415,
    "c": 0.04042,
    "h": 130.1
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#28331D
secondary
#564566
accent
#64C494
background
#F5F6F5
surface
#EAEBE9
border
#C6C6C5
text
#050603
muted
#797A78

Preview Lab

Preview with #28331D

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

Preview Lab → · Contrast checker → · Palette generator →

#28331D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva