#310218#310218

#310218 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.7% C 0.079 H 357.2°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#310218
RGBrgb(49, 2, 24)
HSLhsl(332, 92%, 10%)
HSVhsv(332, 96%, 19%)
CMYKcmyk(0%, 95.9%, 51%, 80.8%)
CIE-LABlab(6.89, 25.45, -1.49)
CIE-LCHlch(6.89, 25.49, 356.64°)
OKLaboklab(20.73% 0.0792 -0.0038)
OKLCHoklch(20.73% 0.079 357.2)
XYZxyz(1.4533, 0.7625, 0.9346)
Luminance0.0076 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310218 #02311B
analogous
#31022F #310218 #310402
triadic
#310218 #183102 #021831
tetradic
#310218 #2F3102 #02311B #040231
square
#310218 #2F3102 #02311B #040231
split-complementary
#310218 #023104 #022F31
monochromatic
#1D010E #1D010E #310218 #6C0435 #A70752

Accessibility & contrast

On white

18.22
#310218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310218
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310218#FFFFFF#000000##FFFFFF
##3102181.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B0F19
Deuteranopia (green-blind)
#191917
Tritanopia (blue-blind)
#36000B
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310218;
/* rgb */ color: rgb(49, 2, 24);
/* oklch */ color: oklch(20.7% 0.079 357.2);
Tailwind
colors: {
  custom: {
    50: '#6c4754',
    500: '#310218',
    950: '#000000',
  },
}
SCSS
$custom: #310218;
$custom-light: #6c4754;
$custom-dark: #000000;
JSON
{
  "hex": "#310218",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 331.915,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.2073,
    "c": 0.07928,
    "h": 357.2
  },
  "luminance": 0.00762
}

Semantic roles & 50–950 ramp

primary
#310218
secondary
#19754A
accent
#FF9B29
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #310218

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

Preview Lab → · Contrast checker → · Palette generator →

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