#310229#310229

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

Color values

HEX#310229
RGBrgb(49, 2, 41)
HSLhsl(310, 92%, 10%)
HSVhsv(310, 96%, 19%)
CMYKcmyk(0%, 95.9%, 16.3%, 80.8%)
CIE-LABlab(7.74, 28.15, -13.33)
CIE-LCHlch(7.74, 31.15, 334.66°)
OKLaboklab(21.67% 0.0829 -0.0364)
OKLCHoklch(21.67% 0.091 336.3)
XYZxyz(1.6886, 0.8566, 2.1738)
Luminance0.0086 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310229 #02310A
analogous
#220231 #310229 #310211
triadic
#310229 #293102 #022931
tetradic
#310229 #312202 #02310A #021131
square
#310229 #312202 #02310A #021131
split-complementary
#310229 #113102 #023122
monochromatic
#1D0119 #1D0119 #310229 #6C045A #A7078B

Accessibility & contrast

On white

17.93
#310229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310229
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310229#FFFFFF#000000##FFFFFF
##3102291.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03122A
Deuteranopia (green-blind)
#131A28
Tritanopia (blue-blind)
#340515
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310229;
/* rgb */ color: rgb(49, 2, 41);
/* oklch */ color: oklch(21.7% 0.091 336.3);
Tailwind
colors: {
  custom: {
    50: '#6c4863',
    500: '#310229',
    950: '#000000',
  },
}
SCSS
$custom: #310229;
$custom-light: #6c4863;
$custom-dark: #000000;
JSON
{
  "hex": "#310229",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 41
  },
  "hsl": {
    "h": 310.213,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21674,
    "c": 0.09056,
    "h": 336.3
  },
  "luminance": 0.00856
}

Semantic roles & 50–950 ramp

primary
#310229
secondary
#197529
accent
#FF4D29
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310229

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

Preview Lab → · Contrast checker → · Palette generator →

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