#2F310A#2F310A

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

Color values

HEX#2F310A
RGBrgb(47, 49, 10)
HSLhsl(63, 66%, 12%)
HSVhsv(63, 80%, 19%)
CMYKcmyk(4.1%, 0%, 79.6%, 80.8%)
CIE-LABlab(19.32, -7.09, 23.16)
CIE-LCHlch(19.32, 24.22, 107.02°)
OKLaboklab(30.21% -0.0216 0.053)
OKLCHoklch(30.21% 0.057 112.2)
XYZxyz(2.3255, 2.8229, 0.7095)
Luminance0.0282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F310A #0C0A31
analogous
#31200A #2F310A #1C310A
triadic
#2F310A #0A2F31 #310A2F
tetradic
#2F310A #0A3120 #0C0A31 #310A1C
square
#2F310A #0A3120 #0C0A31 #310A1C
split-complementary
#2F310A #0A1C31 #200A31
monochromatic
#181905 #181905 #2F310A #606414 #91971F

Accessibility & contrast

On white

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

On black

1.56
#2F310A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F310A#FFFFFF#000000##FFFFFF
##2F310A1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f310a;
/* rgb */ color: rgb(47, 49, 10);
/* oklch */ color: oklch(30.2% 0.057 112.2);
Tailwind
colors: {
  custom: {
    50: '#69684c',
    500: '#2f310a',
    950: '#000000',
  },
}
SCSS
$custom: #2f310a;
$custom-light: #69684c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f310a",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 10
  },
  "hsl": {
    "h": 63.077,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.30205,
    "c": 0.0572,
    "h": 112.2
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#2F310A
secondary
#2C296E
accent
#3FE947
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F310A

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

Preview Lab → · Contrast checker → · Palette generator →

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