#310307#310307

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

Color values

HEX#310307
RGBrgb(49, 3, 7)
HSLhsl(355, 88%, 10%)
HSVhsv(355, 94%, 19%)
CMYKcmyk(0%, 93.9%, 85.7%, 80.8%)
CIE-LABlab(6.63, 23.19, 7.53)
CIE-LCHlch(6.63, 24.38, 18.00°)
OKLaboklab(20.35% 0.0691 0.0268)
OKLCHoklch(20.35% 0.074 21.2)
XYZxyz(1.3377, 0.7336, 0.2721)
Luminance0.0073 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310307 #03312D
analogous
#31031E #310307 #311603
triadic
#310307 #073103 #030731
tetradic
#310307 #1E3103 #03312D #160331
square
#310307 #1E3103 #03312D #160331
split-complementary
#310307 #033116 #031E31
monochromatic
#1D0204 #1D0204 #310307 #6B070F #A40A17

Accessibility & contrast

On white

18.32
#310307 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310307
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310307#FFFFFF#000000##FFFFFF
##3103071.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310307;
/* rgb */ color: rgb(49, 3, 7);
/* oklch */ color: oklch(20.3% 0.074 21.2);
Tailwind
colors: {
  custom: {
    50: '#6d484a',
    500: '#310307',
    950: '#000000',
  },
}
SCSS
$custom: #310307;
$custom-light: #6d484a;
$custom-dark: #000000;
JSON
{
  "hex": "#310307",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 7
  },
  "hsl": {
    "h": 354.783,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20349,
    "c": 0.07415,
    "h": 21.2
  },
  "luminance": 0.00733
}

Semantic roles & 50–950 ramp

primary
#310307
secondary
#1B746D
accent
#FFEC29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #310307

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

Preview Lab → · Contrast checker → · Palette generator →

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