#2F331A#2F331A

#2F331A is a dark, muted yellow. Relative luminance 0.030; OKLCH L 31.0% C 0.041 H 116.3°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2F331A
RGBrgb(47, 51, 26)
HSLhsl(70, 32%, 15%)
HSVhsv(70, 49%, 20%)
CMYKcmyk(7.8%, 0%, 49%, 80%)
CIE-LABlab(20.23, -6.62, 15.26)
CIE-LCHlch(20.23, 16.64, 113.46°)
OKLaboklab(31% -0.0183 0.0371)
OKLCHoklch(31% 0.041 116.3)
XYZxyz(2.5426, 3.0466, 1.4312)
Luminance0.0305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F331A #1E1A33
analogous
#332A1A #2F331A #22331A
triadic
#2F331A #1A2F33 #331A2F
tetradic
#2F331A #1A332A #1E1A33 #331A22
square
#2F331A #1A332A #1E1A33 #331A22
split-complementary
#2F331A #1A2233 #2A1A33
monochromatic
#13140A #13140A #2F331A #545C2F #7A8443

Accessibility & contrast

On white

13.05
#2F331A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F331A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F331A
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F331A#FFFFFF#000000##FFFFFF
##2F331A1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363118
Deuteranopia (green-blind)
#36311B
Tritanopia (blue-blind)
#32302D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f331a;
/* rgb */ color: rgb(47, 51, 26);
/* oklch */ color: oklch(31.0% 0.041 116.3);
Tailwind
colors: {
  custom: {
    50: '#686a57',
    500: '#2f331a',
    950: '#000000',
  },
}
SCSS
$custom: #2f331a;
$custom-light: #686a57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f331a",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 26
  },
  "hsl": {
    "h": 69.6,
    "s": 32.468,
    "l": 15.098
  },
  "oklch": {
    "l": 0.31,
    "c": 0.04139,
    "h": 116.3
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#2F331A
secondary
#474168
accent
#5FC970
background
#F6F6F5
surface
#EBEBE9
border
#C6C6C5
text
#060603
muted
#7A7A78

Preview Lab

Preview with #2F331A

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

Preview Lab → · Contrast checker → · Palette generator →

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