#2F340B#2F340B

#2F340B is a dark, moderate yellow. Relative luminance 0.031; OKLCH L 31.1% C 0.061 H 116.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2F340B
RGBrgb(47, 52, 11)
HSLhsl(67, 65%, 12%)
HSVhsv(67, 79%, 20%)
CMYKcmyk(9.6%, 0%, 78.8%, 79.6%)
CIE-LABlab(20.38, -8.89, 23.95)
CIE-LCHlch(20.38, 25.54, 110.37°)
OKLaboklab(31.06% -0.0265 0.0544)
OKLCHoklch(31.06% 0.061 116)
XYZxyz(2.4607, 3.0845, 0.7823)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F340B #100B34
analogous
#34250B #2F340B #1B340B
triadic
#2F340B #0B2F34 #340B2F
tetradic
#2F340B #0B3425 #100B34 #340B1B
square
#2F340B #0B3425 #100B34 #340B1B
split-complementary
#2F340B #0B1B34 #250B34
monochromatic
#171905 #171905 #2F340B #5D6716 #8A9920

Accessibility & contrast

On white

12.99
#2F340B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F340B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F340B
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F340B#FFFFFF#000000##FFFFFF
##2F340B1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383106
Deuteranopia (green-blind)
#38310E
Tritanopia (blue-blind)
#32312C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f340b;
/* rgb */ color: rgb(47, 52, 11);
/* oklch */ color: oklch(31.1% 0.061 116.0);
Tailwind
colors: {
  custom: {
    50: '#696b4d',
    500: '#2f340b',
    950: '#000000',
  },
}
SCSS
$custom: #2f340b;
$custom-light: #696b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f340b",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 11
  },
  "hsl": {
    "h": 67.317,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.31056,
    "c": 0.06052,
    "h": 116
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#2F340B
secondary
#332A71
accent
#40E854
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F340B

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

Preview Lab → · Contrast checker → · Palette generator →

#2F340B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva