#310C02#310C02

#310C02 is a very dark, moderate red. Relative luminance 0.009; OKLCH L 21.6% C 0.064 H 38.7°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#310C02
RGBrgb(49, 12, 2)
HSLhsl(13, 92%, 10%)
HSVhsv(13, 96%, 19%)
CMYKcmyk(0%, 75.5%, 95.9%, 80.8%)
CIE-LABlab(8.31, 18.05, 12.03)
CIE-LCHlch(8.31, 21.69, 33.68°)
OKLaboklab(21.64% 0.0499 0.0399)
OKLCHoklch(21.64% 0.064 38.7)
XYZxyz(1.4092, 0.9205, 0.1609)
Luminance0.0092 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C02 #022731
analogous
#31020F #310C02 #312402
triadic
#310C02 #02310C #0C0231
tetradic
#310C02 #0F3102 #022731 #240231
square
#310C02 #0F3102 #022731 #240231
split-complementary
#310C02 #023124 #020F31
monochromatic
#1D0701 #1D0701 #310C02 #6C1A04 #A72907

Accessibility & contrast

On white

17.74
#310C02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310C02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C02
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C02#FFFFFF#000000##FFFFFF
##310C021.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171301
Deuteranopia (green-blind)
#201B01
Tritanopia (blue-blind)
#370409
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310c02;
/* rgb */ color: rgb(49, 12, 2);
/* oklch */ color: oklch(21.6% 0.064 38.7);
Tailwind
colors: {
  custom: {
    50: '#6c4d47',
    500: '#310c02',
    950: '#000000',
  },
}
SCSS
$custom: #310c02;
$custom-light: #6c4d47;
$custom-dark: #000000;
JSON
{
  "hex": "#310c02",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 2
  },
  "hsl": {
    "h": 12.766,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.2164,
    "c": 0.06383,
    "h": 38.7
  },
  "luminance": 0.0092
}

Semantic roles & 50–950 ramp

primary
#310C02
secondary
#196275
accent
#D1FF29
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#070100
muted
#7A7777

Preview Lab

Preview with #310C02

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

Preview Lab → · Contrast checker → · Palette generator →

#310C02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva