#342E0C#342E0C

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

Color values

HEX#342E0C
RGBrgb(52, 46, 12)
HSLhsl(51, 63%, 13%)
HSVhsv(51, 77%, 20%)
CMYKcmyk(0%, 11.5%, 76.9%, 79.6%)
CIE-LABlab(18.85, -2.31, 21.89)
CIE-LCHlch(18.85, 22.01, 96.01°)
OKLaboklab(29.96% -0.0082 0.0503)
OKLCHoklch(29.96% 0.051 99.2)
XYZxyz(2.4596, 2.7107, 0.7414)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E0C #0C1234
analogous
#341A0C #342E0C #26340C
triadic
#342E0C #0C342E #2E0C34
tetradic
#342E0C #0C341A #0C1234 #340C26
square
#342E0C #0C341A #0C1234 #340C26
split-complementary
#342E0C #0C2634 #1A0C34
monochromatic
#191606 #191606 #342E0C #665A17 #978623

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342E0C#FFFFFF#000000##FFFFFF
##342E0C1.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)
#332D08
Deuteranopia (green-blind)
#352F0E
Tritanopia (blue-blind)
#392A27
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #342e0c;
/* rgb */ color: rgb(52, 46, 12);
/* oklch */ color: oklch(30.0% 0.051 99.2);
Tailwind
colors: {
  custom: {
    50: '#6d664d',
    500: '#342e0c',
    950: '#000000',
  },
}
SCSS
$custom: #342e0c;
$custom-light: #6d664d;
$custom-dark: #000000;
JSON
{
  "hex": "#342e0c",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 12
  },
  "hsl": {
    "h": 51,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.29961,
    "c": 0.05094,
    "h": 99.2
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#342E0C
secondary
#2C3670
accent
#5BE642
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#070501
muted
#7A7A77

Preview Lab

Preview with #342E0C

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

Preview Lab → · Contrast checker → · Palette generator →

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