#310123#310123

#310123 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.1% C 0.088 H 342.9°. Best body text is #FFFFFF at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#310123
RGBrgb(49, 1, 35)
HSLhsl(318, 96%, 10%)
HSVhsv(318, 98%, 19%)
CMYKcmyk(0%, 98%, 28.6%, 80.8%)
CIE-LABlab(7.19, 27.67, -9.61)
CIE-LCHlch(7.19, 29.29, 340.85°)
OKLaboklab(21.15% 0.0841 -0.0259)
OKLCHoklch(21.15% 0.088 342.9)
XYZxyz(1.5809, 0.7962, 1.6602)
Luminance0.0080 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310123 #01310F
analogous
#270131 #310123 #31010B
triadic
#310123 #233101 #012331
tetradic
#310123 #312701 #01310F #010B31
square
#310123 #312701 #01310F #010B31
split-complementary
#310123 #0B3101 #013127
monochromatic
#1E0115 #1E0115 #310123 #6D024E #A90379

Accessibility & contrast

On white

18.12
#310123 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310123
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310123#FFFFFF#000000##FFFFFF
##3101231.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051124
Deuteranopia (green-blind)
#151922
Tritanopia (blue-blind)
#350111
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310123;
/* rgb */ color: rgb(49, 1, 35);
/* oklch */ color: oklch(21.1% 0.088 342.9);
Tailwind
colors: {
  custom: {
    50: '#6c475d',
    500: '#310123',
    950: '#000000',
  },
}
SCSS
$custom: #310123;
$custom-light: #6c475d;
$custom-dark: #000000;
JSON
{
  "hex": "#310123",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 35
  },
  "hsl": {
    "h": 317.5,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21147,
    "c": 0.08804,
    "h": 342.9
  },
  "luminance": 0.00796
}

Semantic roles & 50–950 ramp

primary
#310123
secondary
#177733
accent
#FF6729
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070004
muted
#7A7779

Preview Lab

Preview with #310123

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

Preview Lab → · Contrast checker → · Palette generator →

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