#310203#310203

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

Color values

HEX#310203
RGBrgb(49, 2, 3)
HSLhsl(359, 92%, 10%)
HSVhsv(359, 96%, 19%)
CMYKcmyk(0%, 95.9%, 93.9%, 80.8%)
CIE-LABlab(6.35, 23.38, 8.76)
CIE-LCHlch(6.35, 24.97, 20.54°)
OKLaboklab(20.09% 0.0686 0.0337)
OKLCHoklch(20.09% 0.076 26.2)
XYZxyz(1.3049, 0.7032, 0.1531)
Luminance0.0070 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310203 #023130
analogous
#31021B #310203 #311802
triadic
#310203 #033102 #020331
tetradic
#310203 #1B3102 #023130 #180231
square
#310203 #1B3102 #023130 #180231
split-complementary
#310203 #023118 #021B31
monochromatic
#1D0102 #1D0102 #310203 #6C0407 #A7070A

Accessibility & contrast

On white

18.41
#310203 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310203
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310203#FFFFFF#000000##FFFFFF
##3102031.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100D03
Deuteranopia (green-blind)
#1C1802
Tritanopia (blue-blind)
#370003
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #310203;
/* rgb */ color: rgb(49, 2, 3);
/* oklch */ color: oklch(20.1% 0.076 26.2);
Tailwind
colors: {
  custom: {
    50: '#6d4748',
    500: '#310203',
    950: '#000000',
  },
}
SCSS
$custom: #310203;
$custom-light: #6d4748;
$custom-dark: #000000;
JSON
{
  "hex": "#310203",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 3
  },
  "hsl": {
    "h": 358.723,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20086,
    "c": 0.07645,
    "h": 26.2
  },
  "luminance": 0.00703
}

Semantic roles & 50–950 ramp

primary
#310203
secondary
#197573
accent
#FFFA29
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#080000
muted
#7A7777

Preview Lab

Preview with #310203

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

Preview Lab → · Contrast checker → · Palette generator →

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