#310107#310107

#310107 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.0% C 0.078 H 19.2°. Best body text is #FFFFFF at 18.45:1 contrast (WCAG AA passes).

Color values

HEX#310107
RGBrgb(49, 1, 7)
HSLhsl(353, 96%, 10%)
HSVhsv(353, 98%, 19%)
CMYKcmyk(0%, 98%, 85.7%, 80.8%)
CIE-LABlab(6.23, 24.22, 6.96)
CIE-LCHlch(6.23, 25.20, 16.03°)
OKLaboklab(20.02% 0.0733 0.0256)
OKLCHoklch(20.02% 0.078 19.2)
XYZxyz(1.3160, 0.6902, 0.2649)
Luminance0.0069 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310107 #01312B
analogous
#31011F #310107 #311301
triadic
#310107 #073101 #010731
tetradic
#310107 #1F3101 #01312B #130131
square
#310107 #1F3101 #01312B #130131
split-complementary
#310107 #013113 #011F31
monochromatic
#1E0104 #1E0104 #310107 #6D0210 #A90318

Accessibility & contrast

On white

18.45
#310107 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#310107 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310107
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310107#FFFFFF#000000##FFFFFF
##3101071.0018.451.1418.45
#FFFFFF18.451.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E0D07
Deuteranopia (green-blind)
#1B1806
Tritanopia (blue-blind)
#370003
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #310107;
/* rgb */ color: rgb(49, 1, 7);
/* oklch */ color: oklch(20.0% 0.078 19.2);
Tailwind
colors: {
  custom: {
    50: '#6d474a',
    500: '#310107',
    950: '#000000',
  },
}
SCSS
$custom: #310107;
$custom-light: #6d474a;
$custom-dark: #000000;
JSON
{
  "hex": "#310107",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 7
  },
  "hsl": {
    "h": 352.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20015,
    "c": 0.07765,
    "h": 19.2
  },
  "luminance": 0.0069
}

Semantic roles & 50–950 ramp

primary
#310107
secondary
#17776B
accent
#FFE429
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#080001
muted
#7A7777

Preview Lab

Preview with #310107

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

Preview Lab → · Contrast checker → · Palette generator →

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