#310127#310127

#310127 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.4% C 0.091 H 338.4°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#310127
RGBrgb(49, 1, 39)
HSLhsl(313, 96%, 10%)
HSVhsv(313, 98%, 19%)
CMYKcmyk(0%, 98%, 20.4%, 80.8%)
CIE-LABlab(7.42, 28.36, -12.31)
CIE-LCHlch(7.42, 30.92, 336.53°)
OKLaboklab(21.4% 0.0846 -0.0336)
OKLCHoklch(21.4% 0.091 338.4)
XYZxyz(1.6437, 0.8213, 1.9910)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310127 #01310B
analogous
#230131 #310127 #31010F
triadic
#310127 #273101 #012731
tetradic
#310127 #312301 #01310B #010F31
square
#310127 #312301 #01310B #010F31
split-complementary
#310127 #0F3101 #013123
monochromatic
#1E0118 #1E0118 #310127 #6D0257 #A90386

Accessibility & contrast

On white

18.04
#310127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#310127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310127
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310127#FFFFFF#000000##FFFFFF
##3101271.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031128
Deuteranopia (green-blind)
#141926
Tritanopia (blue-blind)
#340313
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310127;
/* rgb */ color: rgb(49, 1, 39);
/* oklch */ color: oklch(21.4% 0.091 338.4);
Tailwind
colors: {
  custom: {
    50: '#6c4761',
    500: '#310127',
    950: '#000000',
  },
}
SCSS
$custom: #310127;
$custom-light: #6c4761;
$custom-dark: #000000;
JSON
{
  "hex": "#310127",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 312.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21397,
    "c": 0.091,
    "h": 338.4
  },
  "luminance": 0.00821
}

Semantic roles & 50–950 ramp

primary
#310127
secondary
#17772B
accent
#FF5529
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#070005
muted
#7A7779

Preview Lab

Preview with #310127

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

Preview Lab → · Contrast checker → · Palette generator →

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