#310327#310327

#310327 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.7% C 0.087 H 338.6°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#310327
RGBrgb(49, 3, 39)
HSLhsl(313, 88%, 10%)
HSVhsv(313, 94%, 19%)
CMYKcmyk(0%, 93.9%, 20.4%, 80.8%)
CIE-LABlab(7.81, 27.23, -11.70)
CIE-LCHlch(7.81, 29.64, 336.75°)
OKLaboklab(21.69% 0.081 -0.0318)
OKLCHoklch(21.69% 0.087 338.6)
XYZxyz(1.6654, 0.8647, 1.9983)
Luminance0.0086 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310327 #03310D
analogous
#240331 #310327 #310310
triadic
#310327 #273103 #032731
tetradic
#310327 #312403 #03310D #031031
square
#310327 #312403 #03310D #031031
split-complementary
#310327 #103103 #033124
monochromatic
#1D0217 #1D0217 #310327 #6B0755 #A40A83

Accessibility & contrast

On white

17.90
#310327 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#310327 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310327
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310327#FFFFFF#000000##FFFFFF
##3103271.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051228
Deuteranopia (green-blind)
#151A26
Tritanopia (blue-blind)
#340514
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310327;
/* rgb */ color: rgb(49, 3, 39);
/* oklch */ color: oklch(21.7% 0.087 338.6);
Tailwind
colors: {
  custom: {
    50: '#6b4961',
    500: '#310327',
    950: '#000000',
  },
}
SCSS
$custom: #310327;
$custom-light: #6b4961;
$custom-dark: #000000;
JSON
{
  "hex": "#310327",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 39
  },
  "hsl": {
    "h": 313.043,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21687,
    "c": 0.08701,
    "h": 338.6
  },
  "luminance": 0.00865
}

Semantic roles & 50–950 ramp

primary
#310327
secondary
#1B742F
accent
#FF5829
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #310327

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

Preview Lab → · Contrast checker → · Palette generator →

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