#310302#310302

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

Color values

HEX#310302
RGBrgb(49, 3, 2)
HSLhsl(1, 92%, 10%)
HSVhsv(1, 96%, 19%)
CMYKcmyk(0%, 93.9%, 95.9%, 80.8%)
CIE-LABlab(6.53, 22.79, 9.43)
CIE-LCHlch(6.53, 24.66, 22.47°)
OKLaboklab(20.23% 0.0659 0.0362)
OKLCHoklch(20.23% 0.075 28.8)
XYZxyz(1.3103, 0.7227, 0.1279)
Luminance0.0072 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310302 #023031
analogous
#310218 #310302 #311B02
triadic
#310302 #023103 #030231
tetradic
#310302 #183102 #023031 #1B0231
square
#310302 #183102 #023031 #1B0231
split-complementary
#310302 #02311B #021831
monochromatic
#1D0201 #1D0201 #310302 #6C0704 #A70A07

Accessibility & contrast

On white

18.35
#310302 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310302
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310302#FFFFFF#000000##FFFFFF
##3103021.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#110E02
Deuteranopia (green-blind)
#1C1801
Tritanopia (blue-blind)
#370003
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #310302;
/* rgb */ color: rgb(49, 3, 2);
/* oklch */ color: oklch(20.2% 0.075 28.8);
Tailwind
colors: {
  custom: {
    50: '#6d4847',
    500: '#310302',
    950: '#000000',
  },
}
SCSS
$custom: #310302;
$custom-light: #6d4847;
$custom-dark: #000000;
JSON
{
  "hex": "#310302",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 2
  },
  "hsl": {
    "h": 1.277,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.2023,
    "c": 0.07515,
    "h": 28.8
  },
  "luminance": 0.00722
}

Semantic roles & 50–950 ramp

primary
#310302
secondary
#197375
accent
#FAFF29
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#080000
muted
#7A7777

Preview Lab

Preview with #310302

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

Preview Lab → · Contrast checker → · Palette generator →

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