#2F340A#2F340A

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

Color values

HEX#2F340A
RGBrgb(47, 52, 10)
HSLhsl(67, 68%, 12%)
HSVhsv(67, 81%, 20%)
CMYKcmyk(9.6%, 0%, 80.8%, 79.6%)
CIE-LABlab(20.37, -8.97, 24.36)
CIE-LCHlch(20.37, 25.95, 110.21°)
OKLaboklab(31.05% -0.0269 0.0552)
OKLCHoklch(31.05% 0.061 115.9)
XYZxyz(2.4551, 3.0823, 0.7527)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F340A #0F0A34
analogous
#34240A #2F340A #1A340A
triadic
#2F340A #0A2F34 #340A2F
tetradic
#2F340A #0A3424 #0F0A34 #340A1A
square
#2F340A #0A3424 #0F0A34 #340A1A
split-complementary
#2F340A #0A1A34 #240A34
monochromatic
#171A05 #171A05 #2F340A #5D6714 #8C9B1E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F340A#FFFFFF#000000##FFFFFF
##2F340A1.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)
#383105
Deuteranopia (green-blind)
#38310D
Tritanopia (blue-blind)
#33312C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f340a;
/* rgb */ color: rgb(47, 52, 10);
/* oklch */ color: oklch(31.0% 0.061 115.9);
Tailwind
colors: {
  custom: {
    50: '#696b4c',
    500: '#2f340a',
    950: '#000000',
  },
}
SCSS
$custom: #2f340a;
$custom-light: #696b4c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f340a",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 10
  },
  "hsl": {
    "h": 67.143,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.31046,
    "c": 0.0614,
    "h": 115.9
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#2F340A
secondary
#312871
accent
#3DEB52
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F340A

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

Preview Lab → · Contrast checker → · Palette generator →

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