#310303#310303

#310303 is a very dark, moderate red. Relative luminance 0.007; OKLCH L 20.3% C 0.075 H 27.2°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#310303
RGBrgb(49, 3, 3)
HSLhsl(0, 88%, 10%)
HSVhsv(0, 94%, 19%)
CMYKcmyk(0%, 93.9%, 93.9%, 80.8%)
CIE-LABlab(6.55, 22.87, 9.05)
CIE-LCHlch(6.55, 24.59, 21.58°)
OKLaboklab(20.25% 0.0666 0.0342)
OKLCHoklch(20.25% 0.075 27.2)
XYZxyz(1.3158, 0.7249, 0.1568)
Luminance0.0073 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310303 #033131
analogous
#31031A #310303 #311A03
triadic
#310303 #033103 #030331
tetradic
#310303 #1A3103 #033131 #1A0331
square
#310303 #1A3103 #033131 #1A0331
split-complementary
#310303 #03311A #031A31
monochromatic
#1D0202 #1D0202 #310303 #6B0707 #A40A0A

Accessibility & contrast

On white

18.34
#310303 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310303
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310303#FFFFFF#000000##FFFFFF
##3103031.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#110E03
Deuteranopia (green-blind)
#1C1802
Tritanopia (blue-blind)
#370003
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310303;
/* rgb */ color: rgb(49, 3, 3);
/* oklch */ color: oklch(20.3% 0.075 27.2);
Tailwind
colors: {
  custom: {
    50: '#6d4848',
    500: '#310303',
    950: '#000000',
  },
}
SCSS
$custom: #310303;
$custom-light: #6d4848;
$custom-dark: #000000;
JSON
{
  "hex": "#310303",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 3
  },
  "hsl": {
    "h": 0,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20254,
    "c": 0.07485,
    "h": 27.2
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#310303
secondary
#1B7474
accent
#FFFF29
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#080000
muted
#7A7777

Preview Lab

Preview with #310303

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

Preview Lab → · Contrast checker → · Palette generator →

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