#2F2A12#2F2A12

#2F2A12 is a dark, muted yellow. Relative luminance 0.023; OKLCH L 28.4% C 0.039 H 97.8°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2F2A12
RGBrgb(47, 42, 18)
HSLhsl(50, 45%, 13%)
HSVhsv(50, 62%, 18%)
CMYKcmyk(0%, 10.6%, 61.7%, 81.6%)
CIE-LABlab(17.01, -1.76, 16.37)
CIE-LCHlch(17.01, 16.46, 96.15°)
OKLaboklab(28.4% -0.0053 0.0389)
OKLCHoklch(28.4% 0.039 97.8)
XYZxyz(2.1095, 2.3040, 0.9058)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A12 #12172F
analogous
#2F1B12 #2F2A12 #252F12
triadic
#2F2A12 #122F2A #2A122F
tetradic
#2F2A12 #122F1B #12172F #2F1225
square
#2F2A12 #122F1B #12172F #2F1225
split-complementary
#2F2A12 #12252F #1B122F
monochromatic
#161408 #161408 #2F2A12 #5B5223 #887934

Accessibility & contrast

On white

14.38
#2F2A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F2A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A12
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A12#FFFFFF#000000##FFFFFF
##2F2A121.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2910
Deuteranopia (green-blind)
#302B13
Tritanopia (blue-blind)
#332724
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f2a12;
/* rgb */ color: rgb(47, 42, 18);
/* oklch */ color: oklch(28.4% 0.039 97.8);
Tailwind
colors: {
  custom: {
    50: '#686350',
    500: '#2f2a12',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a12;
$custom-light: #686350;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a12",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 18
  },
  "hsl": {
    "h": 49.655,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.28395,
    "c": 0.03928,
    "h": 97.8
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#2F2A12
secondary
#363E67
accent
#6AD453
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#060502
muted
#7A7978

Preview Lab

Preview with #2F2A12

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

Preview Lab → · Contrast checker → · Palette generator →

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