#342E0A#342E0A

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

Color values

HEX#342E0A
RGBrgb(52, 46, 10)
HSLhsl(51, 68%, 12%)
HSVhsv(51, 81%, 20%)
CMYKcmyk(0%, 11.5%, 80.8%, 79.6%)
CIE-LABlab(18.83, -2.45, 22.73)
CIE-LCHlch(18.83, 22.86, 96.16°)
OKLaboklab(29.94% -0.0089 0.0521)
OKLCHoklch(29.94% 0.053 99.7)
XYZxyz(2.4481, 2.7061, 0.6805)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E0A #0A1034
analogous
#34190A #342E0A #25340A
triadic
#342E0A #0A342E #2E0A34
tetradic
#342E0A #0A3419 #0A1034 #340A25
square
#342E0A #0A3419 #0A1034 #340A25
split-complementary
#342E0A #0A2534 #190A34
monochromatic
#1A1705 #1A1705 #342E0A #675B14 #9B891E

Accessibility & contrast

On white

13.63
#342E0A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342E0A
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E0A#FFFFFF#000000##FFFFFF
##342E0A1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342e0a;
/* rgb */ color: rgb(52, 46, 10);
/* oklch */ color: oklch(29.9% 0.053 99.7);
Tailwind
colors: {
  custom: {
    50: '#6d664c',
    500: '#342e0a',
    950: '#000000',
  },
}
SCSS
$custom: #342e0a;
$custom-light: #6d664c;
$custom-dark: #000000;
JSON
{
  "hex": "#342e0a",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 10
  },
  "hsl": {
    "h": 51.429,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.29939,
    "c": 0.05281,
    "h": 99.7
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#342E0A
secondary
#283371
accent
#56EB3D
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#070501
muted
#7A7A77

Preview Lab

Preview with #342E0A

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

Preview Lab → · Contrast checker → · Palette generator →

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