#310204#310204

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

Color values

HEX#310204
RGBrgb(49, 2, 4)
HSLhsl(357, 92%, 10%)
HSVhsv(357, 96%, 19%)
CMYKcmyk(0%, 95.9%, 91.8%, 80.8%)
CIE-LABlab(6.37, 23.46, 8.38)
CIE-LCHlch(6.37, 24.91, 19.66°)
OKLaboklab(20.11% 0.0693 0.0317)
OKLCHoklch(20.11% 0.076 24.6)
XYZxyz(1.3104, 0.7054, 0.1820)
Luminance0.0070 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310204 #02312F
analogous
#31021B #310204 #311802
triadic
#310204 #043102 #020431
tetradic
#310204 #1B3102 #02312F #180231
square
#310204 #1B3102 #02312F #180231
split-complementary
#310204 #023118 #021B31
monochromatic
#1D0102 #1D0102 #310204 #6C0409 #A7070E

Accessibility & contrast

On white

18.40
#310204 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310204
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310204#FFFFFF#000000##FFFFFF
##3102041.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#100D04
Deuteranopia (green-blind)
#1C1803
Tritanopia (blue-blind)
#370003
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #310204;
/* rgb */ color: rgb(49, 2, 4);
/* oklch */ color: oklch(20.1% 0.076 24.6);
Tailwind
colors: {
  custom: {
    50: '#6d4748',
    500: '#310204',
    950: '#000000',
  },
}
SCSS
$custom: #310204;
$custom-light: #6d4748;
$custom-dark: #000000;
JSON
{
  "hex": "#310204",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 4
  },
  "hsl": {
    "h": 357.447,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20111,
    "c": 0.07623,
    "h": 24.6
  },
  "luminance": 0.00705
}

Semantic roles & 50–950 ramp

primary
#310204
secondary
#197572
accent
#FFF629
background
#F6F4F4
surface
#ECE6E6
border
#C7C2C2
text
#080000
muted
#7A7777

Preview Lab

Preview with #310204

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

Preview Lab → · Contrast checker → · Palette generator →

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