#342E0B#342E0B

#342E0B is a dark, muted yellow. Relative luminance 0.027; OKLCH L 29.9% C 0.052 H 99.5°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#342E0B
RGBrgb(52, 46, 11)
HSLhsl(51, 65%, 12%)
HSVhsv(51, 79%, 20%)
CMYKcmyk(0%, 11.5%, 78.8%, 79.6%)
CIE-LABlab(18.84, -2.38, 22.32)
CIE-LCHlch(18.84, 22.44, 96.09°)
OKLaboklab(29.95% -0.0085 0.0512)
OKLCHoklch(29.95% 0.052 99.5)
XYZxyz(2.4537, 2.7083, 0.7101)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E0B #0B1134
analogous
#341A0B #342E0B #25340B
triadic
#342E0B #0B342E #2E0B34
tetradic
#342E0B #0B341A #0B1134 #340B25
square
#342E0B #0B341A #0B1134 #340B25
split-complementary
#342E0B #0B2534 #1A0B34
monochromatic
#191605 #191605 #342E0B #675B16 #998720

Accessibility & contrast

On white

13.62
#342E0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#342E0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E0B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E0B#FFFFFF#000000##FFFFFF
##342E0B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332D07
Deuteranopia (green-blind)
#352F0D
Tritanopia (blue-blind)
#392A27
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #342e0b;
/* rgb */ color: rgb(52, 46, 11);
/* oklch */ color: oklch(29.9% 0.052 99.5);
Tailwind
colors: {
  custom: {
    50: '#6d664c',
    500: '#342e0b',
    950: '#000000',
  },
}
SCSS
$custom: #342e0b;
$custom-light: #6d664c;
$custom-dark: #000000;
JSON
{
  "hex": "#342e0b",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 11
  },
  "hsl": {
    "h": 51.22,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2995,
    "c": 0.0519,
    "h": 99.5
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#342E0B
secondary
#2A3471
accent
#58E840
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#070501
muted
#7A7A77

Preview Lab

Preview with #342E0B

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

Preview Lab → · Contrast checker → · Palette generator →

#342E0B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva