#310308#310308

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

Color values

HEX#310308
RGBrgb(49, 3, 8)
HSLhsl(353, 88%, 10%)
HSVhsv(353, 94%, 19%)
CMYKcmyk(0%, 93.9%, 83.7%, 80.8%)
CIE-LABlab(6.65, 23.27, 7.15)
CIE-LCHlch(6.65, 24.35, 17.09°)
OKLaboklab(20.37% 0.0697 0.0251)
OKLCHoklch(20.37% 0.074 19.8)
XYZxyz(1.3432, 0.7358, 0.3010)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310308 #03312C
analogous
#31031F #310308 #311503
triadic
#310308 #083103 #030831
tetradic
#310308 #1F3103 #03312C #150331
square
#310308 #1F3103 #03312C #150331
split-complementary
#310308 #033115 #031F31
monochromatic
#1D0205 #1D0205 #310308 #6B0711 #A40A1B

Accessibility & contrast

On white

18.31
#310308 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310308
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310308#FFFFFF#000000##FFFFFF
##3103081.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100E08
Deuteranopia (green-blind)
#1C1807
Tritanopia (blue-blind)
#370005
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310308;
/* rgb */ color: rgb(49, 3, 8);
/* oklch */ color: oklch(20.4% 0.074 19.8);
Tailwind
colors: {
  custom: {
    50: '#6d484a',
    500: '#310308',
    950: '#000000',
  },
}
SCSS
$custom: #310308;
$custom-light: #6d484a;
$custom-dark: #000000;
JSON
{
  "hex": "#310308",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 8
  },
  "hsl": {
    "h": 353.478,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20373,
    "c": 0.07408,
    "h": 19.8
  },
  "luminance": 0.00736
}

Semantic roles & 50–950 ramp

primary
#310308
secondary
#1B746B
accent
#FFE729
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #310308

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

Preview Lab → · Contrast checker → · Palette generator →

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