#312E08#312E08

#312E08 is a dark, muted yellow. Relative luminance 0.026; OKLCH L 29.6% C 0.055 H 104.8°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#312E08
RGBrgb(49, 46, 8)
HSLhsl(56, 72%, 11%)
HSVhsv(56, 84%, 19%)
CMYKcmyk(0%, 6.1%, 83.7%, 80.8%)
CIE-LABlab(18.47, -4.23, 23.04)
CIE-LCHlch(18.47, 23.43, 100.41°)
OKLaboklab(29.57% -0.014 0.053)
OKLCHoklch(29.57% 0.055 104.8)
XYZxyz(2.2875, 2.6246, 0.6158)
Luminance0.0262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E08 #080B31
analogous
#311908 #312E08 #1F3108
triadic
#312E08 #08312E #2E0831
tetradic
#312E08 #083119 #080B31 #31081F
square
#312E08 #083119 #080B31 #31081F
split-complementary
#312E08 #081F31 #190831
monochromatic
#1A1904 #1A1904 #312E08 #665F11 #9A9119

Accessibility & contrast

On white

13.77
#312E08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#312E08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E08
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E08#FFFFFF#000000##FFFFFF
##312E081.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C04
Deuteranopia (green-blind)
#342E0A
Tritanopia (blue-blind)
#352A26
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #312e08;
/* rgb */ color: rgb(49, 46, 8);
/* oklch */ color: oklch(29.6% 0.055 104.8);
Tailwind
colors: {
  custom: {
    50: '#6b664b',
    500: '#312e08',
    950: '#000000',
  },
}
SCSS
$custom: #312e08;
$custom-light: #6b664b;
$custom-dark: #000000;
JSON
{
  "hex": "#312e08",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 8
  },
  "hsl": {
    "h": 55.61,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.29573,
    "c": 0.05481,
    "h": 104.8
  },
  "luminance": 0.02624
}

Semantic roles & 50–950 ramp

primary
#312E08
secondary
#252A70
accent
#46EF39
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070501
muted
#7A7A77

Preview Lab

Preview with #312E08

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

Preview Lab → · Contrast checker → · Palette generator →

#312E08 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva