#342F04#342F04

#342F04 is a dark, muted yellow. Relative luminance 0.028; OKLCH L 30.1% C 0.059 H 102.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#342F04
RGBrgb(52, 47, 4)
HSLhsl(54, 86%, 11%)
HSVhsv(54, 92%, 20%)
CMYKcmyk(0%, 9.6%, 92.3%, 79.6%)
CIE-LABlab(19.11, -3.53, 25.50)
CIE-LCHlch(19.11, 25.74, 97.88°)
OKLaboklab(30.14% -0.0129 0.058)
OKLCHoklch(30.14% 0.059 102.5)
XYZxyz(2.4547, 2.7720, 0.5206)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F04 #040934
analogous
#341704 #342F04 #213404
triadic
#342F04 #04342F #2F0434
tetradic
#342F04 #043417 #040934 #340421
square
#342F04 #043417 #040934 #340421
split-complementary
#342F04 #042134 #170434
monochromatic
#1C1A02 #1C1A02 #342F04 #6D6208 #A6960D

Accessibility & contrast

On white

13.51
#342F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342F04
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F04#FFFFFF#000000##FFFFFF
##342F041.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342f04;
/* rgb */ color: rgb(52, 47, 4);
/* oklch */ color: oklch(30.1% 0.059 102.5);
Tailwind
colors: {
  custom: {
    50: '#6d6749',
    500: '#342f04',
    950: '#000000',
  },
}
SCSS
$custom: #342f04;
$custom-light: #6d6749;
$custom-dark: #000000;
JSON
{
  "hex": "#342f04",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 4
  },
  "hsl": {
    "h": 53.75,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.30144,
    "c": 0.0594,
    "h": 102.5
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#342F04
secondary
#1E2776
accent
#42FC2C
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #342F04

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

Preview Lab → · Contrast checker → · Palette generator →

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