#342F0C#342F0C

#342F0C is a dark, muted yellow. Relative luminance 0.028; OKLCH L 30.2% C 0.052 H 101.2°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#342F0C
RGBrgb(52, 47, 12)
HSLhsl(53, 63%, 13%)
HSVhsv(53, 77%, 20%)
CMYKcmyk(0%, 9.6%, 76.9%, 79.6%)
CIE-LABlab(19.18, -2.96, 22.28)
CIE-LCHlch(19.18, 22.47, 97.57°)
OKLaboklab(30.23% -0.0101 0.051)
OKLCHoklch(30.23% 0.052 101.2)
XYZxyz(2.4992, 2.7897, 0.7546)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F0C #0C1134
analogous
#341B0C #342F0C #25340C
triadic
#342F0C #0C342F #2F0C34
tetradic
#342F0C #0C341B #0C1134 #340C25
square
#342F0C #0C341B #0C1134 #340C25
split-complementary
#342F0C #0C2534 #1B0C34
monochromatic
#191606 #191606 #342F0C #665C17 #978923

Accessibility & contrast

On white

13.48
#342F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#342F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F0C
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F0C#FFFFFF#000000##FFFFFF
##342F0C1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D08
Deuteranopia (green-blind)
#352F0E
Tritanopia (blue-blind)
#392B28
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342f0c;
/* rgb */ color: rgb(52, 47, 12);
/* oklch */ color: oklch(30.2% 0.052 101.2);
Tailwind
colors: {
  custom: {
    50: '#6d674d',
    500: '#342f0c',
    950: '#000000',
  },
}
SCSS
$custom: #342f0c;
$custom-light: #6d674d;
$custom-dark: #000000;
JSON
{
  "hex": "#342f0c",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 12
  },
  "hsl": {
    "h": 52.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.30228,
    "c": 0.05202,
    "h": 101.2
  },
  "luminance": 0.0279
}

Semantic roles & 50–950 ramp

primary
#342F0C
secondary
#2C3470
accent
#57E642
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #342F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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