#2F310F#2F310F

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

Color values

HEX#2F310F
RGBrgb(47, 49, 15)
HSLhsl(64, 53%, 13%)
HSVhsv(64, 69%, 19%)
CMYKcmyk(4.1%, 0%, 69.4%, 80.8%)
CIE-LABlab(19.37, -6.66, 20.89)
CIE-LCHlch(19.37, 21.92, 107.70°)
OKLaboklab(30.26% -0.0198 0.0483)
OKLCHoklch(30.26% 0.052 112.2)
XYZxyz(2.3569, 2.8355, 0.8750)
Luminance0.0284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F310F #110F31
analogous
#31220F #2F310F #1E310F
triadic
#2F310F #0F2F31 #310F2F
tetradic
#2F310F #0F3122 #110F31 #310F1E
square
#2F310F #0F3122 #110F31 #310F1E
split-complementary
#2F310F #0F1E31 #220F31
monochromatic
#161707 #161707 #2F310F #5C601D #898F2C

Accessibility & contrast

On white

13.40
#2F310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F310F
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F310F#FFFFFF#000000##FFFFFF
##2F310F1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352F0B
Deuteranopia (green-blind)
#352F11
Tritanopia (blue-blind)
#322E2A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f310f;
/* rgb */ color: rgb(47, 49, 15);
/* oklch */ color: oklch(30.3% 0.052 112.2);
Tailwind
colors: {
  custom: {
    50: '#69684f',
    500: '#2f310f',
    950: '#000000',
  },
}
SCSS
$custom: #2f310f;
$custom-light: #69684f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f310f",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 63.529,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.30263,
    "c": 0.0522,
    "h": 112.2
  },
  "luminance": 0.02835
}

Semantic roles & 50–950 ramp

primary
#2F310F
secondary
#34316B
accent
#4BDD54
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #2F310F

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

Preview Lab → · Contrast checker → · Palette generator →

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