#310401#310401

#310401 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.4% C 0.074 H 31.5°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#310401
RGBrgb(49, 4, 1)
HSLhsl(4, 96%, 10%)
HSVhsv(4, 98%, 19%)
CMYKcmyk(0%, 91.8%, 98%, 80.8%)
CIE-LABlab(6.70, 22.19, 10.09)
CIE-LCHlch(6.70, 24.38, 24.45°)
OKLaboklab(20.37% 0.0631 0.0387)
OKLCHoklch(20.37% 0.074 31.5)
XYZxyz(1.3157, 0.7422, 0.1027)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310401 #012E31
analogous
#310116 #310401 #311C01
triadic
#310401 #013104 #040131
tetradic
#310401 #163101 #012E31 #1C0131
square
#310401 #163101 #012E31 #1C0131
split-complementary
#310401 #01311C #011631
monochromatic
#1E0201 #1E0201 #310401 #6D0902 #A90E03

Accessibility & contrast

On white

18.29
#310401 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#310401 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310401
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310401#FFFFFF#000000##FFFFFF
##3104011.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#120E00
Deuteranopia (green-blind)
#1D1900
Tritanopia (blue-blind)
#370004
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310401;
/* rgb */ color: rgb(49, 4, 1);
/* oklch */ color: oklch(20.4% 0.074 31.5);
Tailwind
colors: {
  custom: {
    50: '#6d4847',
    500: '#310401',
    950: '#000000',
  },
}
SCSS
$custom: #310401;
$custom-light: #6d4847;
$custom-dark: #000000;
JSON
{
  "hex": "#310401",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 1
  },
  "hsl": {
    "h": 3.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20372,
    "c": 0.07406,
    "h": 31.5
  },
  "luminance": 0.00742
}

Semantic roles & 50–950 ramp

primary
#310401
secondary
#177177
accent
#F2FF29
background
#F6F4F3
surface
#ECE6E5
border
#C7C2C1
text
#080000
muted
#7A7777

Preview Lab

Preview with #310401

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

Preview Lab → · Contrast checker → · Palette generator →

#310401 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva