#310207#310207

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

Color values

HEX#310207
RGBrgb(49, 2, 7)
HSLhsl(354, 92%, 10%)
HSVhsv(354, 96%, 19%)
CMYKcmyk(0%, 95.9%, 85.7%, 80.8%)
CIE-LABlab(6.43, 23.71, 7.25)
CIE-LCHlch(6.43, 24.79, 17.00°)
OKLaboklab(20.18% 0.0712 0.0262)
OKLCHoklch(20.18% 0.076 20.2)
XYZxyz(1.3268, 0.7119, 0.2685)
Luminance0.0071 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310207 #02312C
analogous
#31021F #310207 #311402
triadic
#310207 #073102 #020731
tetradic
#310207 #1F3102 #02312C #140231
square
#310207 #1F3102 #02312C #140231
split-complementary
#310207 #023114 #021F31
monochromatic
#1D0104 #1D0104 #310207 #6C040F #A70718

Accessibility & contrast

On white

18.38
#310207 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310207
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310207#FFFFFF#000000##FFFFFF
##3102071.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F0D07
Deuteranopia (green-blind)
#1C1806
Tritanopia (blue-blind)
#370004
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #310207;
/* rgb */ color: rgb(49, 2, 7);
/* oklch */ color: oklch(20.2% 0.076 20.2);
Tailwind
colors: {
  custom: {
    50: '#6d474a',
    500: '#310207',
    950: '#000000',
  },
}
SCSS
$custom: #310207;
$custom-light: #6d474a;
$custom-dark: #000000;
JSON
{
  "hex": "#310207",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 7
  },
  "hsl": {
    "h": 353.617,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20184,
    "c": 0.07586,
    "h": 20.2
  },
  "luminance": 0.00712
}

Semantic roles & 50–950 ramp

primary
#310207
secondary
#19756C
accent
#FFE829
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070001
muted
#7A7777

Preview Lab

Preview with #310207

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

Preview Lab → · Contrast checker → · Palette generator →

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