#28331B#28331B

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

Color values

HEX#28331B
RGBrgb(40, 51, 27)
HSLhsl(88, 31%, 15%)
HSVhsv(88, 47%, 20%)
CMYKcmyk(21.6%, 0%, 47.1%, 80%)
CIE-LABlab(19.63, -9.87, 13.73)
CIE-LCHlch(19.63, 16.91, 125.71°)
OKLaboklab(30.37% -0.0271 0.0337)
OKLCHoklch(30.37% 0.043 128.8)
XYZxyz(2.2567, 2.8979, 1.4771)
Luminance0.0290 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28331B #261B33
analogous
#33321B #28331B #1C331B
triadic
#28331B #1B2833 #331B28
tetradic
#28331B #1B3332 #261B33 #331B1C
square
#28331B #1B3332 #261B33 #331B1C
split-complementary
#28331B #1B1C33 #321B33
monochromatic
#10140B #10140B #28331B #475B30 #678345

Accessibility & contrast

On white

13.29
#28331B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28331B
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28331B#FFFFFF#000000##FFFFFF
##28331B1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353019
Deuteranopia (green-blind)
#342F1C
Tritanopia (blue-blind)
#29312D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28331b;
/* rgb */ color: rgb(40, 51, 27);
/* oklch */ color: oklch(30.4% 0.043 128.8);
Tailwind
colors: {
  custom: {
    50: '#626a57',
    500: '#28331b',
    950: '#000000',
  },
}
SCSS
$custom: #28331b;
$custom-light: #626a57;
$custom-dark: #000000;
JSON
{
  "hex": "#28331b",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 27
  },
  "hsl": {
    "h": 87.5,
    "s": 30.769,
    "l": 15.294
  },
  "oklch": {
    "l": 0.3037,
    "c": 0.04325,
    "h": 128.8
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#28331B
secondary
#534367
accent
#61C790
background
#F5F6F5
surface
#EAEBE9
border
#C6C6C5
text
#050603
muted
#797A78

Preview Lab

Preview with #28331B

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

Preview Lab → · Contrast checker → · Palette generator →

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