#310328#310328

#310328 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.8% C 0.088 H 337.5°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#310328
RGBrgb(49, 3, 40)
HSLhsl(312, 88%, 10%)
HSVhsv(312, 94%, 19%)
CMYKcmyk(0%, 93.9%, 18.4%, 80.8%)
CIE-LABlab(7.87, 27.40, -12.36)
CIE-LCHlch(7.87, 30.06, 335.72°)
OKLaboklab(21.75% 0.0811 -0.0337)
OKLCHoklch(21.75% 0.088 337.5)
XYZxyz(1.6822, 0.8715, 2.0867)
Luminance0.0087 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310328 #03310C
analogous
#230331 #310328 #310311
triadic
#310328 #283103 #032831
tetradic
#310328 #312303 #03310C #031131
square
#310328 #312303 #03310C #031131
split-complementary
#310328 #113103 #033123
monochromatic
#1D0218 #1D0218 #310328 #6B0757 #A40A86

Accessibility & contrast

On white

17.88
#310328 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310328
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310328#FFFFFF#000000##FFFFFF
##3103281.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041329
Deuteranopia (green-blind)
#141A27
Tritanopia (blue-blind)
#340514
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310328;
/* rgb */ color: rgb(49, 3, 40);
/* oklch */ color: oklch(21.8% 0.088 337.5);
Tailwind
colors: {
  custom: {
    50: '#6b4962',
    500: '#310328',
    950: '#000000',
  },
}
SCSS
$custom: #310328;
$custom-light: #6b4962;
$custom-dark: #000000;
JSON
{
  "hex": "#310328",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 40
  },
  "hsl": {
    "h": 311.739,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21751,
    "c": 0.08781,
    "h": 337.5
  },
  "luminance": 0.00871
}

Semantic roles & 50–950 ramp

primary
#310328
secondary
#1B742D
accent
#FF5329
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310328

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

Preview Lab → · Contrast checker → · Palette generator →

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