#28310B#28310B

#28310B is a dark, muted yellow-green. Relative luminance 0.027; OKLCH L 29.5% C 0.059 H 121.5°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#28310B
RGBrgb(40, 49, 11)
HSLhsl(74, 63%, 12%)
HSVhsv(74, 78%, 19%)
CMYKcmyk(18.4%, 0%, 77.6%, 80.8%)
CIE-LABlab(18.68, -10.67, 21.83)
CIE-LCHlch(18.68, 24.30, 116.04°)
OKLaboklab(29.53% -0.0309 0.0505)
OKLCHoklch(29.53% 0.059 121.5)
XYZxyz(2.0338, 2.6719, 0.7251)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28310B #140B31
analogous
#31270B #28310B #15310B
triadic
#28310B #0B2831 #310B28
tetradic
#28310B #0B3127 #140B31 #310B15
square
#28310B #0B3127 #140B31 #310B15
split-complementary
#28310B #0B1531 #270B31
monochromatic
#141906 #141906 #28310B #516316 #7A9521

Accessibility & contrast

On white

13.69
#28310B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#28310B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28310B
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28310B#FFFFFF#000000##FFFFFF
##28310B1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E06
Deuteranopia (green-blind)
#332D0E
Tritanopia (blue-blind)
#2B2E29
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28310b;
/* rgb */ color: rgb(40, 49, 11);
/* oklch */ color: oklch(29.5% 0.059 121.5);
Tailwind
colors: {
  custom: {
    50: '#63694c',
    500: '#28310b',
    950: '#000000',
  },
}
SCSS
$custom: #28310b;
$custom-light: #63694c;
$custom-dark: #000000;
JSON
{
  "hex": "#28310b",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 11
  },
  "hsl": {
    "h": 74.211,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2953,
    "c": 0.05919,
    "h": 121.5
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#28310B
secondary
#3A2A6E
accent
#41E668
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050601
muted
#7A7A77

Preview Lab

Preview with #28310B

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

Preview Lab → · Contrast checker → · Palette generator →

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