#310102#310102

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

Color values

HEX#310102
RGBrgb(49, 1, 2)
HSLhsl(359, 96%, 10%)
HSVhsv(359, 98%, 19%)
CMYKcmyk(0%, 98%, 95.9%, 80.8%)
CIE-LABlab(6.14, 23.81, 8.85)
CIE-LCHlch(6.14, 25.40, 20.40°)
OKLaboklab(19.89% 0.07 0.0353)
OKLCHoklch(19.89% 0.078 26.8)
XYZxyz(1.2886, 0.6793, 0.1207)
Luminance0.0068 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310102 #013130
analogous
#31011A #310102 #311801
triadic
#310102 #023101 #010231
tetradic
#310102 #1A3101 #013130 #180131
square
#310102 #1A3101 #013130 #180131
split-complementary
#310102 #013118 #011A31
monochromatic
#1E0101 #1E0101 #310102 #6D0204 #A90307

Accessibility & contrast

On white

18.49
#310102 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310102
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310102#FFFFFF#000000##FFFFFF
##3101021.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F0C02
Deuteranopia (green-blind)
#1C1701
Tritanopia (blue-blind)
#370002
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #310102;
/* rgb */ color: rgb(49, 1, 2);
/* oklch */ color: oklch(19.9% 0.078 26.8);
Tailwind
colors: {
  custom: {
    50: '#6d4647',
    500: '#310102',
    950: '#000000',
  },
}
SCSS
$custom: #310102;
$custom-light: #6d4647;
$custom-dark: #000000;
JSON
{
  "hex": "#310102",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 2
  },
  "hsl": {
    "h": 358.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19891,
    "c": 0.07836,
    "h": 26.8
  },
  "luminance": 0.00679
}

Semantic roles & 50–950 ramp

primary
#310102
secondary
#177775
accent
#FFFB29
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#080000
muted
#7A7777

Preview Lab

Preview with #310102

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

Preview Lab → · Contrast checker → · Palette generator →

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