#342E02#342E02

#342E02 is a dark, moderate yellow. Relative luminance 0.027; OKLCH L 29.9% C 0.060 H 101.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#342E02
RGBrgb(52, 46, 2)
HSLhsl(53, 93%, 11%)
HSVhsv(53, 96%, 20%)
CMYKcmyk(0%, 11.5%, 96.2%, 79.6%)
CIE-LABlab(18.75, -3.01, 25.90)
CIE-LCHlch(18.75, 26.07, 96.64°)
OKLaboklab(29.86% -0.0118 0.0592)
OKLCHoklch(29.86% 0.06 101.3)
XYZxyz(2.4043, 2.6886, 0.4497)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E02 #020834
analogous
#341502 #342E02 #213402
triadic
#342E02 #02342E #2E0234
tetradic
#342E02 #023415 #020834 #340221
square
#342E02 #023415 #020834 #340221
split-complementary
#342E02 #022134 #150234
monochromatic
#1D1A01 #1D1A01 #342E02 #6F6204 #AA9607

Accessibility & contrast

On white

13.66
#342E02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342E02
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E02#FFFFFF#000000##FFFFFF
##342E021.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342C00
Deuteranopia (green-blind)
#352F04
Tritanopia (blue-blind)
#392A26
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #342e02;
/* rgb */ color: rgb(52, 46, 2);
/* oklch */ color: oklch(29.9% 0.060 101.3);
Tailwind
colors: {
  custom: {
    50: '#6d6648',
    500: '#342e02',
    950: '#000000',
  },
}
SCSS
$custom: #342e02;
$custom-light: #6d6648;
$custom-dark: #000000;
JSON
{
  "hex": "#342e02",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 2
  },
  "hsl": {
    "h": 52.8,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.29856,
    "c": 0.06037,
    "h": 101.3
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#342E02
secondary
#1A2578
accent
#43FF29
background
#F6F6F4
surface
#ECEBE6
border
#C7C6C2
text
#070500
muted
#7A7A77

Preview Lab

Preview with #342E02

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

Preview Lab → · Contrast checker → · Palette generator →

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