#310507#310507

#310507 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.7% C 0.071 H 23.2°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#310507
RGBrgb(49, 5, 7)
HSLhsl(357, 81%, 11%)
HSVhsv(357, 90%, 19%)
CMYKcmyk(0%, 89.8%, 85.7%, 80.8%)
CIE-LABlab(7.02, 22.15, 8.11)
CIE-LCHlch(7.02, 23.58, 20.10°)
OKLaboklab(20.67% 0.0652 0.0279)
OKLCHoklch(20.67% 0.071 23.2)
XYZxyz(1.3594, 0.7771, 0.2794)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310507 #05312F
analogous
#31051D #310507 #311905
triadic
#310507 #073105 #050731
tetradic
#310507 #1D3105 #05312F #190531
square
#310507 #1D3105 #05312F #190531
split-complementary
#310507 #053119 #051D31
monochromatic
#1C0304 #1C0304 #310507 #690B0F #A01017

Accessibility & contrast

On white

18.18
#310507 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#310507 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310507
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310507#FFFFFF#000000##FFFFFF
##3105071.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#120F07
Deuteranopia (green-blind)
#1D1906
Tritanopia (blue-blind)
#370006
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310507;
/* rgb */ color: rgb(49, 5, 7);
/* oklch */ color: oklch(20.7% 0.071 23.2);
Tailwind
colors: {
  custom: {
    50: '#6d494a',
    500: '#310507',
    950: '#000000',
  },
}
SCSS
$custom: #310507;
$custom-light: #6d494a;
$custom-dark: #000000;
JSON
{
  "hex": "#310507",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 7
  },
  "hsl": {
    "h": 357.273,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20673,
    "c": 0.07094,
    "h": 23.2
  },
  "luminance": 0.00777
}

Semantic roles & 50–950 ramp

primary
#310507
secondary
#1F726F
accent
#F8EF30
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070101
muted
#7A7777

Preview Lab

Preview with #310507

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

Preview Lab → · Contrast checker → · Palette generator →

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