#310502#310502

#310502 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.6% C 0.072 H 30.9°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#310502
RGBrgb(49, 5, 2)
HSLhsl(4, 92%, 10%)
HSVhsv(4, 96%, 19%)
CMYKcmyk(0%, 89.8%, 95.9%, 80.8%)
CIE-LABlab(6.92, 21.75, 10.00)
CIE-LCHlch(6.92, 23.94, 24.68°)
OKLaboklab(20.56% 0.062 0.0371)
OKLCHoklch(20.56% 0.072 30.9)
XYZxyz(1.3320, 0.7661, 0.1352)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310502 #022E31
analogous
#310216 #310502 #311D02
triadic
#310502 #023105 #050231
tetradic
#310502 #163102 #022E31 #1D0231
square
#310502 #163102 #022E31 #1D0231
split-complementary
#310502 #02311D #021631
monochromatic
#1D0301 #1D0301 #310502 #6C0B04 #A71107

Accessibility & contrast

On white

18.21
#310502 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310502
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310502#FFFFFF#000000##FFFFFF
##3105021.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310502;
/* rgb */ color: rgb(49, 5, 2);
/* oklch */ color: oklch(20.6% 0.072 30.9);
Tailwind
colors: {
  custom: {
    50: '#6d4947',
    500: '#310502',
    950: '#000000',
  },
}
SCSS
$custom: #310502;
$custom-light: #6d4947;
$custom-dark: #000000;
JSON
{
  "hex": "#310502",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 2
  },
  "hsl": {
    "h": 3.83,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20558,
    "c": 0.07223,
    "h": 30.9
  },
  "luminance": 0.00766
}

Semantic roles & 50–950 ramp

primary
#310502
secondary
#197075
accent
#F1FF29
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310502

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

Preview Lab → · Contrast checker → · Palette generator →

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