#342F02#342F02

#342F02 is a dark, moderate yellow. Relative luminance 0.028; OKLCH L 30.1% C 0.061 H 102.8°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#342F02
RGBrgb(52, 47, 2)
HSLhsl(54, 93%, 11%)
HSVhsv(54, 96%, 20%)
CMYKcmyk(0%, 9.6%, 96.2%, 79.6%)
CIE-LABlab(19.09, -3.67, 26.29)
CIE-LCHlch(19.09, 26.54, 97.94°)
OKLaboklab(30.12% -0.0136 0.0598)
OKLCHoklch(30.12% 0.061 102.8)
XYZxyz(2.4438, 2.7676, 0.4629)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F02 #020734
analogous
#341602 #342F02 #203402
triadic
#342F02 #02342F #2F0234
tetradic
#342F02 #023416 #020734 #340220
square
#342F02 #023416 #020734 #340220
split-complementary
#342F02 #022034 #160234
monochromatic
#1D1B01 #1D1B01 #342F02 #6F6404 #AA9A07

Accessibility & contrast

On white

13.52
#342F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#342F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F02
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F02#FFFFFF#000000##FFFFFF
##342F021.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352D00
Deuteranopia (green-blind)
#362F05
Tritanopia (blue-blind)
#392B27
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #342f02;
/* rgb */ color: rgb(52, 47, 2);
/* oklch */ color: oklch(30.1% 0.061 102.8);
Tailwind
colors: {
  custom: {
    50: '#6d6748',
    500: '#342f02',
    950: '#000000',
  },
}
SCSS
$custom: #342f02;
$custom-light: #6d6748;
$custom-dark: #000000;
JSON
{
  "hex": "#342f02",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 54,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.30124,
    "c": 0.06134,
    "h": 102.8
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#342F02
secondary
#1A2378
accent
#3EFF29
background
#F6F6F4
surface
#ECEBE6
border
#C7C6C2
text
#070600
muted
#7A7A77

Preview Lab

Preview with #342F02

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

Preview Lab → · Contrast checker → · Palette generator →

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