#2F310B#2F310B

#2F310B is a dark, muted yellow. Relative luminance 0.028; OKLCH L 30.2% C 0.056 H 112.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2F310B
RGBrgb(47, 49, 11)
HSLhsl(63, 63%, 12%)
HSVhsv(63, 78%, 19%)
CMYKcmyk(4.1%, 0%, 77.6%, 80.8%)
CIE-LABlab(19.33, -7.01, 22.76)
CIE-LCHlch(19.33, 23.81, 107.13°)
OKLaboklab(30.21% -0.0213 0.0521)
OKLCHoklch(30.21% 0.056 112.2)
XYZxyz(2.3311, 2.8252, 0.7391)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F310B #0D0B31
analogous
#31200B #2F310B #1C310B
triadic
#2F310B #0B2F31 #310B2F
tetradic
#2F310B #0B3120 #0D0B31 #310B1C
square
#2F310B #0B3120 #0D0B31 #310B1C
split-complementary
#2F310B #0B1C31 #200B31
monochromatic
#181906 #181906 #2F310B #5F6316 #8F9521

Accessibility & contrast

On white

13.42
#2F310B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F310B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F310B
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F310B#FFFFFF#000000##FFFFFF
##2F310B1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352E06
Deuteranopia (green-blind)
#352F0E
Tritanopia (blue-blind)
#332E29
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f310b;
/* rgb */ color: rgb(47, 49, 11);
/* oklch */ color: oklch(30.2% 0.056 112.2);
Tailwind
colors: {
  custom: {
    50: '#69684c',
    500: '#2f310b',
    950: '#000000',
  },
}
SCSS
$custom: #2f310b;
$custom-light: #69684c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f310b",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 11
  },
  "hsl": {
    "h": 63.158,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.30215,
    "c": 0.05628,
    "h": 112.2
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#2F310B
secondary
#2E2A6E
accent
#41E64A
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F310B

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

Preview Lab → · Contrast checker → · Palette generator →

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