#2F2F12#2F2F12

#2F2F12 is a dark, muted yellow. Relative luminance 0.027; OKLCH L 29.8% C 0.046 H 108.9°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#2F2F12
RGBrgb(47, 47, 18)
HSLhsl(60, 45%, 13%)
HSVhsv(60, 62%, 18%)
CMYKcmyk(0%, 0%, 61.7%, 81.6%)
CIE-LABlab(18.72, -5.07, 18.42)
CIE-LCHlch(18.72, 19.10, 105.39°)
OKLaboklab(29.75% -0.0148 0.0433)
OKLCHoklch(29.75% 0.046 108.9)
XYZxyz(2.2980, 2.6811, 0.9686)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F12 #12122F
analogous
#2F2012 #2F2F12 #202F12
triadic
#2F2F12 #122F2F #2F122F
tetradic
#2F2F12 #122F20 #12122F #2F1220
square
#2F2F12 #122F20 #12122F #2F1220
split-complementary
#2F2F12 #12202F #20122F
monochromatic
#161608 #161608 #2F2F12 #5B5B23 #888834

Accessibility & contrast

On white

13.67
#2F2F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F2F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F12
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F12#FFFFFF#000000##FFFFFF
##2F2F121.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332D0F
Deuteranopia (green-blind)
#332E13
Tritanopia (blue-blind)
#322C28
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f2f12;
/* rgb */ color: rgb(47, 47, 18);
/* oklch */ color: oklch(29.8% 0.046 108.9);
Tailwind
colors: {
  custom: {
    50: '#686750',
    500: '#2f2f12',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f12;
$custom-light: #686750;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f12",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.29754,
    "c": 0.04581,
    "h": 108.9
  },
  "luminance": 0.02681
}

Semantic roles & 50–950 ramp

primary
#2F2F12
secondary
#363667
accent
#53D453
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #2F2F12

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

Preview Lab → · Contrast checker → · Palette generator →

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