#2D310B#2D310B

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

Color values

HEX#2D310B
RGBrgb(45, 49, 11)
HSLhsl(66, 63%, 12%)
HSVhsv(66, 78%, 19%)
CMYKcmyk(8.2%, 0%, 77.6%, 80.8%)
CIE-LABlab(19.13, -8.07, 22.48)
CIE-LCHlch(19.13, 23.89, 109.74°)
OKLaboklab(30.01% -0.0241 0.0516)
OKLCHoklch(30.01% 0.057 115)
XYZxyz(2.2410, 2.7787, 0.7348)
Luminance0.0278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D310B #0F0B31
analogous
#31220B #2D310B #1A310B
triadic
#2D310B #0B2D31 #310B2D
tetradic
#2D310B #0B3122 #0F0B31 #310B1A
square
#2D310B #0B3122 #0F0B31 #310B1A
split-complementary
#2D310B #0B1A31 #220B31
monochromatic
#171906 #171906 #2D310B #5B6316 #899521

Accessibility & contrast

On white

13.50
#2D310B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D310B
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D310B#FFFFFF#000000##FFFFFF
##2D310B1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352E06
Deuteranopia (green-blind)
#352F0E
Tritanopia (blue-blind)
#302E29
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d310b;
/* rgb */ color: rgb(45, 49, 11);
/* oklch */ color: oklch(30.0% 0.057 115.0);
Tailwind
colors: {
  custom: {
    50: '#67694c',
    500: '#2d310b',
    950: '#000000',
  },
}
SCSS
$custom: #2d310b;
$custom-light: #67694c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d310b",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 11
  },
  "hsl": {
    "h": 66.316,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.30011,
    "c": 0.05696,
    "h": 115
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#2D310B
secondary
#312A6E
accent
#41E653
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2D310B

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

Preview Lab → · Contrast checker → · Palette generator →

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