#342A02#342A02

#342A02 is a dark, muted yellow. Relative luminance 0.024; OKLCH L 28.8% C 0.057 H 94.3°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#342A02
RGBrgb(52, 42, 2)
HSLhsl(48, 93%, 11%)
HSVhsv(48, 96%, 20%)
CMYKcmyk(0%, 19.2%, 96.2%, 79.6%)
CIE-LABlab(17.42, -0.36, 24.30)
CIE-LCHlch(17.42, 24.31, 90.84°)
OKLaboklab(28.8% -0.0043 0.0568)
OKLCHoklch(28.8% 0.057 94.3)
XYZxyz(2.2552, 2.3905, 0.4001)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A02 #020C34
analogous
#341102 #342A02 #253402
triadic
#342A02 #02342A #2A0234
tetradic
#342A02 #023411 #020C34 #340225
square
#342A02 #023411 #020C34 #340225
split-complementary
#342A02 #022534 #110234
monochromatic
#1D1801 #1D1801 #342A02 #6F5A04 #AA8907

Accessibility & contrast

On white

14.21
#342A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#342A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A02
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A02#FFFFFF#000000##FFFFFF
##342A021.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#322C04
Tritanopia (blue-blind)
#392622
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #342a02;
/* rgb */ color: rgb(52, 42, 2);
/* oklch */ color: oklch(28.8% 0.057 94.3);
Tailwind
colors: {
  custom: {
    50: '#6d6348',
    500: '#342a02',
    950: '#000000',
  },
}
SCSS
$custom: #342a02;
$custom-light: #6d6348;
$custom-dark: #000000;
JSON
{
  "hex": "#342a02",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 48,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.28798,
    "c": 0.05697,
    "h": 94.3
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#342A02
secondary
#1A2D78
accent
#54FF29
background
#F6F5F4
surface
#ECEAE6
border
#C7C6C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #342A02

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

Preview Lab → · Contrast checker → · Palette generator →

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