#310227#310227

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

Color values

HEX#310227
RGBrgb(49, 2, 39)
HSLhsl(313, 92%, 10%)
HSVhsv(313, 96%, 19%)
CMYKcmyk(0%, 95.9%, 20.4%, 80.8%)
CIE-LABlab(7.61, 27.80, -12.01)
CIE-LCHlch(7.61, 30.28, 336.64°)
OKLaboklab(21.54% 0.0828 -0.0327)
OKLCHoklch(21.54% 0.089 338.5)
XYZxyz(1.6546, 0.8430, 1.9946)
Luminance0.0084 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310227 #02310C
analogous
#240231 #310227 #31020F
triadic
#310227 #273102 #022731
tetradic
#310227 #312402 #02310C #020F31
square
#310227 #312402 #02310C #020F31
split-complementary
#310227 #0F3102 #023124
monochromatic
#1D0117 #1D0117 #310227 #6C0456 #A70785

Accessibility & contrast

On white

17.97
#310227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310227
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310227#FFFFFF#000000##FFFFFF
##3102271.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041228
Deuteranopia (green-blind)
#141926
Tritanopia (blue-blind)
#340413
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310227;
/* rgb */ color: rgb(49, 2, 39);
/* oklch */ color: oklch(21.5% 0.089 338.5);
Tailwind
colors: {
  custom: {
    50: '#6c4861',
    500: '#310227',
    950: '#000000',
  },
}
SCSS
$custom: #310227;
$custom-light: #6c4861;
$custom-dark: #000000;
JSON
{
  "hex": "#310227",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 312.766,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21543,
    "c": 0.08898,
    "h": 338.5
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#310227
secondary
#19752D
accent
#FF5629
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #310227

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

Preview Lab → · Contrast checker → · Palette generator →

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