#310228#310228

#310228 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.6% C 0.090 H 337.4°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#310228
RGBrgb(49, 2, 40)
HSLhsl(311, 92%, 10%)
HSVhsv(311, 96%, 19%)
CMYKcmyk(0%, 95.9%, 18.4%, 80.8%)
CIE-LABlab(7.68, 27.97, -12.67)
CIE-LCHlch(7.68, 30.71, 335.63°)
OKLaboklab(21.61% 0.0828 -0.0345)
OKLCHoklch(21.61% 0.09 337.4)
XYZxyz(1.6714, 0.8498, 2.0831)
Luminance0.0085 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310228 #02310B
analogous
#220231 #310228 #310211
triadic
#310228 #283102 #022831
tetradic
#310228 #312202 #02310B #021131
square
#310228 #312202 #02310B #021131
split-complementary
#310228 #113102 #023122
monochromatic
#1D0118 #1D0118 #310228 #6C0458 #A70788

Accessibility & contrast

On white

17.95
#310228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310228
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310228#FFFFFF#000000##FFFFFF
##3102281.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031229
Deuteranopia (green-blind)
#141927
Tritanopia (blue-blind)
#340414
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310228;
/* rgb */ color: rgb(49, 2, 40);
/* oklch */ color: oklch(21.6% 0.090 337.4);
Tailwind
colors: {
  custom: {
    50: '#6c4862',
    500: '#310228',
    950: '#000000',
  },
}
SCSS
$custom: #310228;
$custom-light: #6c4862;
$custom-dark: #000000;
JSON
{
  "hex": "#310228",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 311.489,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21608,
    "c": 0.08977,
    "h": 337.4
  },
  "luminance": 0.0085
}

Semantic roles & 50–950 ramp

primary
#310228
secondary
#19752B
accent
#FF5229
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310228

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

Preview Lab → · Contrast checker → · Palette generator →

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