#28400B#28400B

#28400B is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 34.0% C 0.082 H 131.1°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#28400B
RGBrgb(40, 64, 11)
HSLhsl(87, 71%, 15%)
HSVhsv(87, 83%, 25%)
CMYKcmyk(37.5%, 0%, 82.8%, 74.9%)
CIE-LABlab(24.14, -19.15, 27.74)
CIE-LCHlch(24.14, 33.71, 124.62°)
OKLaboklab(33.95% -0.0542 0.0622)
OKLCHoklch(33.95% 0.082 131.1)
XYZxyz(2.7688, 4.1420, 0.9701)
Luminance0.0414 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28400B #230B40
analogous
#403E0B #28400B #0D400B
triadic
#28400B #0B2840 #400B28
tetradic
#28400B #0B403E #230B40 #400B0D
square
#28400B #0B403E #230B40 #400B0D
split-complementary
#28400B #0B0D40 #3E0B40
monochromatic
#101A04 #101A04 #28400B #497414 #69A81D

Accessibility & contrast

On white

11.49
#28400B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#28400B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28400B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28400B#FFFFFF#000000##FFFFFF
##28400B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B03
Deuteranopia (green-blind)
#403910
Tritanopia (blue-blind)
#293D36
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28400b;
/* rgb */ color: rgb(40, 64, 11);
/* oklch */ color: oklch(34.0% 0.082 131.1);
Tailwind
colors: {
  custom: {
    50: '#64754e',
    500: '#28400b',
    950: '#000000',
  },
}
SCSS
$custom: #28400b;
$custom-light: #64754e;
$custom-dark: #000000;
JSON
{
  "hex": "#28400b",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 11
  },
  "hsl": {
    "h": 87.17,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.33954,
    "c": 0.08248,
    "h": 131.1
  },
  "luminance": 0.04142
}

Semantic roles & 50–950 ramp

primary
#28400B
secondary
#502A7D
accent
#3AED8B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #28400B

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

Preview Lab → · Contrast checker → · Palette generator →

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