#2F331F#2F331F

#2F331F is a dark, muted yellow-green. Relative luminance 0.031; OKLCH L 31.1% C 0.034 H 117.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2F331F
RGBrgb(47, 51, 31)
HSLhsl(72, 24%, 16%)
HSVhsv(72, 39%, 20%)
CMYKcmyk(7.8%, 0%, 39.2%, 80%)
CIE-LABlab(20.33, -5.86, 12.14)
CIE-LCHlch(20.33, 13.48, 115.75°)
OKLaboklab(31.11% -0.0158 0.0302)
OKLCHoklch(31.11% 0.034 117.6)
XYZxyz(2.6034, 3.0709, 1.7517)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F331F #231F33
analogous
#332D1F #2F331F #25331F
triadic
#2F331F #1F2F33 #331F2F
tetradic
#2F331F #1F332D #231F33 #331F25
square
#2F331F #1F332D #231F33 #331F25
split-complementary
#2F331F #1F2533 #2D1F33
monochromatic
#12130C #12130C #2F331F #525936 #757F4D

Accessibility & contrast

On white

13.01
#2F331F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F331F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F331F#FFFFFF#000000##FFFFFF
##2F331F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36311E
Deuteranopia (green-blind)
#353120
Tritanopia (blue-blind)
#31312E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f331f;
/* rgb */ color: rgb(47, 51, 31);
/* oklch */ color: oklch(31.1% 0.034 117.6);
Tailwind
colors: {
  custom: {
    50: '#686a5a',
    500: '#2f331f',
    950: '#000000',
  },
}
SCSS
$custom: #2f331f;
$custom-light: #686a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f331f",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 31
  },
  "hsl": {
    "h": 72,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.31108,
    "c": 0.03404,
    "h": 117.6
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#2F331F
secondary
#4E4866
accent
#67C179
background
#F6F6F5
surface
#EBEBE9
border
#C6C6C5
text
#060604
muted
#7A7A79

Preview Lab

Preview with #2F331F

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

Preview Lab → · Contrast checker → · Palette generator →

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