#28340B#28340B

#28340B is a dark, moderate yellow-green. Relative luminance 0.029; OKLCH L 30.4% C 0.064 H 124.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#28340B
RGBrgb(40, 52, 11)
HSLhsl(78, 65%, 12%)
HSVhsv(78, 79%, 20%)
CMYKcmyk(23.1%, 0%, 78.8%, 79.6%)
CIE-LABlab(19.77, -12.46, 23.09)
CIE-LCHlch(19.77, 26.24, 118.36°)
OKLaboklab(30.41% -0.0359 0.0529)
OKLCHoklch(30.41% 0.064 124.2)
XYZxyz(2.1635, 2.9312, 0.7684)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28340B #170B34
analogous
#342C0B #28340B #14340B
triadic
#28340B #0B2834 #340B28
tetradic
#28340B #0B342C #170B34 #340B14
square
#28340B #0B342C #170B34 #340B14
split-complementary
#28340B #0B1434 #2C0B34
monochromatic
#131905 #131905 #28340B #4F6716 #769920

Accessibility & contrast

On white

13.24
#28340B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28340B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28340B
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28340B#FFFFFF#000000##FFFFFF
##28340B1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373006
Deuteranopia (green-blind)
#36300E
Tritanopia (blue-blind)
#2A312C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28340b;
/* rgb */ color: rgb(40, 52, 11);
/* oklch */ color: oklch(30.4% 0.064 124.2);
Tailwind
colors: {
  custom: {
    50: '#636b4d',
    500: '#28340b',
    950: '#000000',
  },
}
SCSS
$custom: #28340b;
$custom-light: #636b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#28340b",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 11
  },
  "hsl": {
    "h": 77.561,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.30407,
    "c": 0.06392,
    "h": 124.2
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#28340B
secondary
#3F2A71
accent
#40E871
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050601
muted
#7A7A77

Preview Lab

Preview with #28340B

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

Preview Lab → · Contrast checker → · Palette generator →

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