#310128#310128

#310128 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.5% C 0.092 H 337.3°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#310128
RGBrgb(49, 1, 40)
HSLhsl(311, 96%, 10%)
HSVhsv(311, 98%, 19%)
CMYKcmyk(0%, 98%, 18.4%, 80.8%)
CIE-LABlab(7.48, 28.54, -12.98)
CIE-LCHlch(7.48, 31.35, 335.54°)
OKLaboklab(21.46% 0.0846 -0.0355)
OKLCHoklch(21.46% 0.092 337.3)
XYZxyz(1.6605, 0.8280, 2.0795)
Luminance0.0083 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310128 #01310A
analogous
#220131 #310128 #310110
triadic
#310128 #283101 #012831
tetradic
#310128 #312201 #01310A #011031
square
#310128 #312201 #01310A #011031
split-complementary
#310128 #103101 #013122
monochromatic
#1E0118 #1E0118 #310128 #6D0259 #A9038A

Accessibility & contrast

On white

18.02
#310128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310128
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310128#FFFFFF#000000##FFFFFF
##3101281.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021229
Deuteranopia (green-blind)
#131927
Tritanopia (blue-blind)
#340314
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310128;
/* rgb */ color: rgb(49, 1, 40);
/* oklch */ color: oklch(21.5% 0.092 337.3);
Tailwind
colors: {
  custom: {
    50: '#6c4862',
    500: '#310128',
    950: '#000000',
  },
}
SCSS
$custom: #310128;
$custom-light: #6c4862;
$custom-dark: #000000;
JSON
{
  "hex": "#310128",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 311.25,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21463,
    "c": 0.09177,
    "h": 337.3
  },
  "luminance": 0.00828
}

Semantic roles & 50–950 ramp

primary
#310128
secondary
#177729
accent
#FF5129
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#070005
muted
#7A7779

Preview Lab

Preview with #310128

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

Preview Lab → · Contrast checker → · Palette generator →

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