#2F310C#2F310C

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

Color values

HEX#2F310C
RGBrgb(47, 49, 12)
HSLhsl(63, 61%, 12%)
HSVhsv(63, 76%, 19%)
CMYKcmyk(4.1%, 0%, 75.5%, 80.8%)
CIE-LABlab(19.34, -6.93, 22.33)
CIE-LCHlch(19.34, 23.38, 107.25°)
OKLaboklab(30.23% -0.0209 0.0512)
OKLCHoklch(30.23% 0.055 112.2)
XYZxyz(2.3370, 2.8276, 0.7704)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F310C #0E0C31
analogous
#31210C #2F310C #1D310C
triadic
#2F310C #0C2F31 #310C2F
tetradic
#2F310C #0C3121 #0E0C31 #310C1D
square
#2F310C #0C3121 #0E0C31 #310C1D
split-complementary
#2F310C #0C1D31 #210C31
monochromatic
#181906 #181906 #2F310C #5E6218 #8D9324

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F310C#FFFFFF#000000##FFFFFF
##2F310C1.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)
#352E08
Deuteranopia (green-blind)
#352F0E
Tritanopia (blue-blind)
#332E29
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f310c;
/* rgb */ color: rgb(47, 49, 12);
/* oklch */ color: oklch(30.2% 0.055 112.2);
Tailwind
colors: {
  custom: {
    50: '#69684d',
    500: '#2f310c',
    950: '#000000',
  },
}
SCSS
$custom: #2f310c;
$custom-light: #69684d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f310c",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 63.243,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.30226,
    "c": 0.05533,
    "h": 112.2
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#2F310C
secondary
#2F2C6D
accent
#44E44D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F310C

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

Preview Lab → · Contrast checker → · Palette generator →

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