#2D310F#2D310F

#2D310F is a dark, muted yellow. Relative luminance 0.028; OKLCH L 30.1% C 0.053 H 115.3°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#2D310F
RGBrgb(45, 49, 15)
HSLhsl(67, 53%, 13%)
HSVhsv(67, 69%, 19%)
CMYKcmyk(8.2%, 0%, 69.4%, 80.8%)
CIE-LABlab(19.18, -7.71, 20.61)
CIE-LCHlch(19.18, 22.00, 110.50°)
OKLaboklab(30.06% -0.0226 0.0478)
OKLCHoklch(30.06% 0.053 115.3)
XYZxyz(2.2668, 2.7890, 0.8708)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D310F #130F31
analogous
#31240F #2D310F #1C310F
triadic
#2D310F #0F2D31 #310F2D
tetradic
#2D310F #0F3124 #130F31 #310F1C
square
#2D310F #0F3124 #130F31 #310F1C
split-complementary
#2D310F #0F1C31 #240F31
monochromatic
#161707 #161707 #2D310F #58601D #838F2C

Accessibility & contrast

On white

13.48
#2D310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D310F
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D310F#FFFFFF#000000##FFFFFF
##2D310F1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d310f;
/* rgb */ color: rgb(45, 49, 15);
/* oklch */ color: oklch(30.1% 0.053 115.3);
Tailwind
colors: {
  custom: {
    50: '#67694f',
    500: '#2d310f',
    950: '#000000',
  },
}
SCSS
$custom: #2d310f;
$custom-light: #67694f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d310f",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 67.059,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.3006,
    "c": 0.05285,
    "h": 115.3
  },
  "luminance": 0.02789
}

Semantic roles & 50–950 ramp

primary
#2D310F
secondary
#38316B
accent
#4BDD5C
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #2D310F

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

Preview Lab → · Contrast checker → · Palette generator →

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