#342B04#342B04

#342B04 is a dark, muted yellow. Relative luminance 0.025; OKLCH L 29.1% C 0.056 H 95.6°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#342B04
RGBrgb(52, 43, 4)
HSLhsl(49, 86%, 11%)
HSVhsv(49, 92%, 20%)
CMYKcmyk(0%, 17.3%, 92.3%, 79.6%)
CIE-LABlab(17.77, -0.88, 23.91)
CIE-LCHlch(17.77, 23.93, 92.12°)
OKLaboklab(29.08% -0.0054 0.0555)
OKLCHoklch(29.08% 0.056 95.6)
XYZxyz(2.3021, 2.4667, 0.4697)
Luminance0.0247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B04 #040D34
analogous
#341304 #342B04 #253404
triadic
#342B04 #04342B #2B0434
tetradic
#342B04 #043413 #040D34 #340425
square
#342B04 #043413 #040D34 #340425
split-complementary
#342B04 #042534 #130434
monochromatic
#1C1702 #1C1702 #342B04 #6D5A08 #A6890D

Accessibility & contrast

On white

14.06
#342B04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#342B04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B04
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B04#FFFFFF#000000##FFFFFF
##342B041.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#332D06
Tritanopia (blue-blind)
#392724
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #342b04;
/* rgb */ color: rgb(52, 43, 4);
/* oklch */ color: oklch(29.1% 0.056 95.6);
Tailwind
colors: {
  custom: {
    50: '#6d6449',
    500: '#342b04',
    950: '#000000',
  },
}
SCSS
$custom: #342b04;
$custom-light: #6d6449;
$custom-dark: #000000;
JSON
{
  "hex": "#342b04",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 4
  },
  "hsl": {
    "h": 48.75,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.29082,
    "c": 0.05571,
    "h": 95.6
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#342B04
secondary
#1E2E76
accent
#53FC2C
background
#F6F5F4
surface
#ECEAE6
border
#C7C6C2
text
#070501
muted
#7A7977

Preview Lab

Preview with #342B04

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

Preview Lab → · Contrast checker → · Palette generator →

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