#28331F#28331F

#28331F is a dark, muted yellow-green. Relative luminance 0.029; OKLCH L 30.5% C 0.038 H 131.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#28331F
RGBrgb(40, 51, 31)
HSLhsl(93, 24%, 16%)
HSVhsv(93, 39%, 20%)
CMYKcmyk(21.6%, 0%, 39.2%, 80%)
CIE-LABlab(19.71, -9.18, 11.22)
CIE-LCHlch(19.71, 14.49, 129.29°)
OKLaboklab(30.46% -0.025 0.028)
OKLCHoklch(30.46% 0.038 131.7)
XYZxyz(2.3062, 2.9177, 1.7377)
Luminance0.0292 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28331F #2A1F33
analogous
#32331F #28331F #1F3320
triadic
#28331F #1F2833 #331F28
tetradic
#28331F #1F3233 #2A1F33 #33201F
square
#28331F #1F3233 #2A1F33 #33201F
split-complementary
#28331F #201F33 #331F32
monochromatic
#0F130C #0F130C #28331F #465936 #647F4D

Accessibility & contrast

On white

13.26
#28331F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28331F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28331F#FFFFFF#000000##FFFFFF
##28331F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35301E
Deuteranopia (green-blind)
#332F20
Tritanopia (blue-blind)
#28312E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28331f;
/* rgb */ color: rgb(40, 51, 31);
/* oklch */ color: oklch(30.5% 0.038 131.7);
Tailwind
colors: {
  custom: {
    50: '#626a5a',
    500: '#28331f',
    950: '#000000',
  },
}
SCSS
$custom: #28331f;
$custom-light: #626a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#28331f",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 31
  },
  "hsl": {
    "h": 93,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.30462,
    "c": 0.03752,
    "h": 131.7
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#28331F
secondary
#584866
accent
#67C198
background
#F5F6F5
surface
#EAEBE9
border
#C6C6C5
text
#050604
muted
#797A79

Preview Lab

Preview with #28331F

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

Preview Lab → · Contrast checker → · Palette generator →

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