#310202#310202

#310202 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.1% C 0.077 H 27.8°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#310202
RGBrgb(49, 2, 2)
HSLhsl(0, 92%, 10%)
HSVhsv(0, 96%, 19%)
CMYKcmyk(0%, 95.9%, 95.9%, 80.8%)
CIE-LABlab(6.33, 23.30, 9.14)
CIE-LCHlch(6.33, 25.03, 21.42°)
OKLaboklab(20.06% 0.0679 0.0358)
OKLCHoklch(20.06% 0.077 27.8)
XYZxyz(1.2995, 0.7010, 0.1243)
Luminance0.0070 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310202 #023131
analogous
#31021A #310202 #311902
triadic
#310202 #023102 #020231
tetradic
#310202 #1A3102 #023131 #190231
square
#310202 #1A3102 #023131 #190231
split-complementary
#310202 #02311A #021931
monochromatic
#1D0101 #1D0101 #310202 #6C0404 #A70707

Accessibility & contrast

On white

18.42
#310202 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310202
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310202#FFFFFF#000000##FFFFFF
##3102021.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100D02
Deuteranopia (green-blind)
#1C1801
Tritanopia (blue-blind)
#370002
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #310202;
/* rgb */ color: rgb(49, 2, 2);
/* oklch */ color: oklch(20.1% 0.077 27.8);
Tailwind
colors: {
  custom: {
    50: '#6d4747',
    500: '#310202',
    950: '#000000',
  },
}
SCSS
$custom: #310202;
$custom-light: #6d4747;
$custom-dark: #000000;
JSON
{
  "hex": "#310202",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 2
  },
  "hsl": {
    "h": 0,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20062,
    "c": 0.07671,
    "h": 27.8
  },
  "luminance": 0.00701
}

Semantic roles & 50–950 ramp

primary
#310202
secondary
#197575
accent
#FFFF29
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#080000
muted
#7A7777

Preview Lab

Preview with #310202

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

Preview Lab → · Contrast checker → · Palette generator →

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