#2F340C#2F340C

#2F340C is a dark, muted yellow. Relative luminance 0.031; OKLCH L 31.1% C 0.060 H 116.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2F340C
RGBrgb(47, 52, 12)
HSLhsl(68, 63%, 13%)
HSVhsv(68, 77%, 20%)
CMYKcmyk(9.6%, 0%, 76.9%, 79.6%)
CIE-LABlab(20.39, -8.81, 23.52)
CIE-LCHlch(20.39, 25.11, 110.54°)
OKLaboklab(31.07% -0.0262 0.0536)
OKLCHoklch(31.07% 0.06 116.1)
XYZxyz(2.4667, 3.0869, 0.8136)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F340C #110C34
analogous
#34250C #2F340C #1B340C
triadic
#2F340C #0C2F34 #340C2F
tetradic
#2F340C #0C3425 #110C34 #340C1B
square
#2F340C #0C3425 #110C34 #340C1B
split-complementary
#2F340C #0C1B34 #250C34
monochromatic
#161906 #161906 #2F340C #5C6617 #899723

Accessibility & contrast

On white

12.98
#2F340C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F340C
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F340C#FFFFFF#000000##FFFFFF
##2F340C1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f340c;
/* rgb */ color: rgb(47, 52, 12);
/* oklch */ color: oklch(31.1% 0.060 116.1);
Tailwind
colors: {
  custom: {
    50: '#696b4d',
    500: '#2f340c',
    950: '#000000',
  },
}
SCSS
$custom: #2f340c;
$custom-light: #696b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f340c",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 12
  },
  "hsl": {
    "h": 67.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.31066,
    "c": 0.05961,
    "h": 116.1
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#2F340C
secondary
#342C70
accent
#42E657
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F340C

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

Preview Lab → · Contrast checker → · Palette generator →

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