#2F310D#2F310D

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

Color values

HEX#2F310D
RGBrgb(47, 49, 13)
HSLhsl(63, 58%, 12%)
HSVhsv(63, 73%, 19%)
CMYKcmyk(4.1%, 0%, 73.5%, 80.8%)
CIE-LABlab(19.35, -6.85, 21.87)
CIE-LCHlch(19.35, 22.92, 107.39°)
OKLaboklab(30.24% -0.0205 0.0503)
OKLCHoklch(30.24% 0.054 112.2)
XYZxyz(2.3433, 2.8301, 0.8035)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F310D #0F0D31
analogous
#31210D #2F310D #1D310D
triadic
#2F310D #0D2F31 #310D2F
tetradic
#2F310D #0D3121 #0F0D31 #310D1D
square
#2F310D #0D3121 #0F0D31 #310D1D
split-complementary
#2F310D #0D1D31 #210D31
monochromatic
#171806 #171806 #2F310D #5D611A #8C9227

Accessibility & contrast

On white

13.41
#2F310D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F310D
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F310D#FFFFFF#000000##FFFFFF
##2F310D1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f310d;
/* rgb */ color: rgb(47, 49, 13);
/* oklch */ color: oklch(30.2% 0.054 112.2);
Tailwind
colors: {
  custom: {
    50: '#69684d',
    500: '#2f310d',
    950: '#000000',
  },
}
SCSS
$custom: #2f310d;
$custom-light: #69684d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f310d",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 13
  },
  "hsl": {
    "h": 63.333,
    "s": 58.065,
    "l": 12.157
  },
  "oklch": {
    "l": 0.30238,
    "c": 0.05432,
    "h": 112.2
  },
  "luminance": 0.0283
}

Semantic roles & 50–950 ramp

primary
#2F310D
secondary
#312E6C
accent
#47E14F
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F310D

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

Preview Lab → · Contrast checker → · Palette generator →

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