#2D310C#2D310C

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

Color values

HEX#2D310C
RGBrgb(45, 49, 12)
HSLhsl(66, 61%, 12%)
HSVhsv(66, 76%, 19%)
CMYKcmyk(8.2%, 0%, 75.5%, 80.8%)
CIE-LABlab(19.14, -7.99, 22.05)
CIE-LCHlch(19.14, 23.45, 109.91°)
OKLaboklab(30.02% -0.0237 0.0507)
OKLCHoklch(30.02% 0.056 115.1)
XYZxyz(2.2469, 2.7811, 0.7662)
Luminance0.0278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D310C #100C31
analogous
#31230C #2D310C #1B310C
triadic
#2D310C #0C2D31 #310C2D
tetradic
#2D310C #0C3123 #100C31 #310C1B
square
#2D310C #0C3123 #100C31 #310C1B
split-complementary
#2D310C #0C1B31 #230C31
monochromatic
#171906 #171906 #2D310C #5A6218 #879324

Accessibility & contrast

On white

13.49
#2D310C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D310C
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D310C#FFFFFF#000000##FFFFFF
##2D310C1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d310c;
/* rgb */ color: rgb(45, 49, 12);
/* oklch */ color: oklch(30.0% 0.056 115.1);
Tailwind
colors: {
  custom: {
    50: '#67694d',
    500: '#2d310c',
    950: '#000000',
  },
}
SCSS
$custom: #2d310c;
$custom-light: #67694d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d310c",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 66.486,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.30022,
    "c": 0.056,
    "h": 115.1
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#2D310C
secondary
#332C6D
accent
#44E455
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2D310C

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

Preview Lab → · Contrast checker → · Palette generator →

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