#310126#310126

#310126 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.3% C 0.090 H 339.5°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#310126
RGBrgb(49, 1, 38)
HSLhsl(314, 96%, 10%)
HSVhsv(314, 98%, 19%)
CMYKcmyk(0%, 98%, 22.4%, 80.8%)
CIE-LABlab(7.36, 28.18, -11.64)
CIE-LCHlch(7.36, 30.49, 337.55°)
OKLaboklab(21.33% 0.0845 -0.0317)
OKLCHoklch(21.33% 0.09 339.5)
XYZxyz(1.6274, 0.8148, 1.9049)
Luminance0.0081 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310126 #01310C
analogous
#240131 #310126 #31010E
triadic
#310126 #263101 #012631
tetradic
#310126 #312401 #01310C #010E31
square
#310126 #312401 #01310C #010E31
split-complementary
#310126 #0E3101 #013124
monochromatic
#1E0117 #1E0117 #310126 #6D0255 #A90383

Accessibility & contrast

On white

18.06
#310126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310126
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310126#FFFFFF#000000##FFFFFF
##3101261.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031127
Deuteranopia (green-blind)
#141925
Tritanopia (blue-blind)
#350212
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310126;
/* rgb */ color: rgb(49, 1, 38);
/* oklch */ color: oklch(21.3% 0.090 339.5);
Tailwind
colors: {
  custom: {
    50: '#6c4760',
    500: '#310126',
    950: '#000000',
  },
}
SCSS
$custom: #310126;
$custom-light: #6c4760;
$custom-dark: #000000;
JSON
{
  "hex": "#310126",
  "rgb": {
    "r": 49,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 313.75,
    "s": 96,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21333,
    "c": 0.09024,
    "h": 339.5
  },
  "luminance": 0.00815
}

Semantic roles & 50–950 ramp

primary
#310126
secondary
#17772D
accent
#FF5A29
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070005
muted
#7A7779

Preview Lab

Preview with #310126

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

Preview Lab → · Contrast checker → · Palette generator →

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