#312A01#312A01

#312A01 is a dark, muted yellow. Relative luminance 0.023; OKLCH L 28.4% C 0.058 H 99.3°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#312A01
RGBrgb(49, 42, 1)
HSLhsl(51, 96%, 10%)
HSVhsv(51, 98%, 19%)
CMYKcmyk(0%, 14.3%, 98%, 80.8%)
CIE-LABlab(17.04, -2.12, 24.17)
CIE-LCHlch(17.04, 24.27, 95.01°)
OKLaboklab(28.41% -0.0093 0.0571)
OKLCHoklch(28.41% 0.058 99.3)
XYZxyz(2.1002, 2.3112, 0.3642)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312A01 #010831
analogous
#311201 #312A01 #203101
triadic
#312A01 #01312A #2A0131
tetradic
#312A01 #013112 #010831 #310120
square
#312A01 #013112 #010831 #310120
split-complementary
#312A01 #012031 #120131
monochromatic
#1E1A01 #1E1A01 #312A01 #6D5D02 #A99103

Accessibility & contrast

On white

14.36
#312A01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#312A01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312A01
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312A01#FFFFFF#000000##FFFFFF
##312A011.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2900
Deuteranopia (green-blind)
#312B03
Tritanopia (blue-blind)
#362622
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #312a01;
/* rgb */ color: rgb(49, 42, 1);
/* oklch */ color: oklch(28.4% 0.058 99.3);
Tailwind
colors: {
  custom: {
    50: '#6b6347',
    500: '#312a01',
    950: '#000000',
  },
}
SCSS
$custom: #312a01;
$custom-light: #6b6347;
$custom-dark: #000000;
JSON
{
  "hex": "#312a01",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 1
  },
  "hsl": {
    "h": 51.25,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.28414,
    "c": 0.05784,
    "h": 99.3
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#312A01
secondary
#172577
accent
#48FF29
background
#F6F5F4
surface
#EBEAE6
border
#C6C6C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #312A01

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

Preview Lab → · Contrast checker → · Palette generator →

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