#310802#310802

#310802 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 21.0% C 0.068 H 34.1°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#310802
RGBrgb(49, 8, 2)
HSLhsl(8, 92%, 10%)
HSVhsv(8, 96%, 19%)
CMYKcmyk(0%, 83.7%, 95.9%, 80.8%)
CIE-LABlab(7.51, 20.19, 10.86)
CIE-LCHlch(7.51, 22.93, 28.26°)
OKLaboklab(21.03% 0.0566 0.0383)
OKLCHoklch(21.03% 0.068 34.1)
XYZxyz(1.3646, 0.8312, 0.1460)
Luminance0.0083 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310802 #022B31
analogous
#310213 #310802 #312002
triadic
#310802 #023108 #080231
tetradic
#310802 #133102 #022B31 #200231
square
#310802 #133102 #022B31 #200231
split-complementary
#310802 #023120 #021331
monochromatic
#1D0501 #1D0501 #310802 #6C1204 #A71B07

Accessibility & contrast

On white

18.01
#310802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#310802 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310802
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310802#FFFFFF#000000##FFFFFF
##3108021.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141101
Deuteranopia (green-blind)
#1E1A01
Tritanopia (blue-blind)
#370007
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310802;
/* rgb */ color: rgb(49, 8, 2);
/* oklch */ color: oklch(21.0% 0.068 34.1);
Tailwind
colors: {
  custom: {
    50: '#6d4a47',
    500: '#310802',
    950: '#000000',
  },
}
SCSS
$custom: #310802;
$custom-light: #6d4a47;
$custom-dark: #000000;
JSON
{
  "hex": "#310802",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 2
  },
  "hsl": {
    "h": 7.66,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21029,
    "c": 0.06833,
    "h": 34.1
  },
  "luminance": 0.00831
}

Semantic roles & 50–950 ramp

primary
#310802
secondary
#196A75
accent
#E4FF29
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310802

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

Preview Lab → · Contrast checker → · Palette generator →

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