#310402#310402

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

Color values

HEX#310402
RGBrgb(49, 4, 2)
HSLhsl(3, 92%, 10%)
HSVhsv(3, 96%, 19%)
CMYKcmyk(0%, 91.8%, 95.9%, 80.8%)
CIE-LABlab(6.72, 22.27, 9.71)
CIE-LCHlch(6.72, 24.30, 23.56°)
OKLaboklab(20.4% 0.0639 0.0367)
OKLCHoklch(20.4% 0.074 29.8)
XYZxyz(1.3212, 0.7444, 0.1315)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310402 #022F31
analogous
#310218 #310402 #311B02
triadic
#310402 #023104 #040231
tetradic
#310402 #183102 #022F31 #1B0231
square
#310402 #183102 #022F31 #1B0231
split-complementary
#310402 #02311B #021831
monochromatic
#1D0201 #1D0201 #310402 #6C0904 #A70E07

Accessibility & contrast

On white

18.28
#310402 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310402
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310402#FFFFFF#000000##FFFFFF
##3104021.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310402;
/* rgb */ color: rgb(49, 4, 2);
/* oklch */ color: oklch(20.4% 0.074 29.8);
Tailwind
colors: {
  custom: {
    50: '#6d4847',
    500: '#310402',
    950: '#000000',
  },
}
SCSS
$custom: #310402;
$custom-light: #6d4847;
$custom-dark: #000000;
JSON
{
  "hex": "#310402",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 2
  },
  "hsl": {
    "h": 2.553,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20395,
    "c": 0.07366,
    "h": 29.8
  },
  "luminance": 0.00744
}

Semantic roles & 50–950 ramp

primary
#310402
secondary
#197275
accent
#F6FF29
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310402

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

Preview Lab → · Contrast checker → · Palette generator →

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