#312C01#312C01

#312C01 is a dark, muted yellow. Relative luminance 0.025; OKLCH L 29.0% C 0.060 H 102.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#312C01
RGBrgb(49, 44, 1)
HSLhsl(54, 96%, 10%)
HSVhsv(54, 98%, 19%)
CMYKcmyk(0%, 10.2%, 98%, 80.8%)
CIE-LABlab(17.72, -3.44, 25.00)
CIE-LCHlch(17.72, 25.23, 97.84°)
OKLaboklab(28.95% -0.013 0.0583)
OKLCHoklch(28.95% 0.06 102.6)
XYZxyz(2.1729, 2.4566, 0.3884)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C01 #010631
analogous
#311401 #312C01 #1E3101
triadic
#312C01 #01312C #2C0131
tetradic
#312C01 #013114 #010631 #31011E
square
#312C01 #013114 #010631 #31011E
split-complementary
#312C01 #011E31 #140131
monochromatic
#1E1B01 #1E1B01 #312C01 #6D6202 #A99803

Accessibility & contrast

On white

14.08
#312C01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#312C01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C01
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C01#FFFFFF#000000##FFFFFF
##312C011.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#332C03
Tritanopia (blue-blind)
#362824
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312c01;
/* rgb */ color: rgb(49, 44, 1);
/* oklch */ color: oklch(29.0% 0.060 102.6);
Tailwind
colors: {
  custom: {
    50: '#6b6447',
    500: '#312c01',
    950: '#000000',
  },
}
SCSS
$custom: #312c01;
$custom-light: #6b6447;
$custom-dark: #000000;
JSON
{
  "hex": "#312c01",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 1
  },
  "hsl": {
    "h": 53.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.28953,
    "c": 0.0597,
    "h": 102.6
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#312C01
secondary
#172177
accent
#3FFF29
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#070500
muted
#7A7A77

Preview Lab

Preview with #312C01

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

Preview Lab → · Contrast checker → · Palette generator →

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