#310223#310223

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

Color values

HEX#310223
RGBrgb(49, 2, 35)
HSLhsl(318, 92%, 10%)
HSVhsv(318, 96%, 19%)
CMYKcmyk(0%, 95.9%, 28.6%, 80.8%)
CIE-LABlab(7.39, 27.11, -9.31)
CIE-LCHlch(7.39, 28.67, 341.06°)
OKLaboklab(21.3% 0.0822 -0.025)
OKLCHoklch(21.3% 0.086 343.1)
XYZxyz(1.5918, 0.8179, 1.6638)
Luminance0.0082 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310223 #023110
analogous
#270231 #310223 #31020C
triadic
#310223 #233102 #022331
tetradic
#310223 #312702 #023110 #020C31
square
#310223 #312702 #023110 #020C31
split-complementary
#310223 #0C3102 #023127
monochromatic
#1D0115 #1D0115 #310223 #6C044D #A70777

Accessibility & contrast

On white

18.05
#310223 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310223
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310223#FFFFFF#000000##FFFFFF
##3102231.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061124
Deuteranopia (green-blind)
#161922
Tritanopia (blue-blind)
#350211
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #310223;
/* rgb */ color: rgb(49, 2, 35);
/* oklch */ color: oklch(21.3% 0.086 343.1);
Tailwind
colors: {
  custom: {
    50: '#6c485d',
    500: '#310223',
    950: '#000000',
  },
}
SCSS
$custom: #310223;
$custom-light: #6c485d;
$custom-dark: #000000;
JSON
{
  "hex": "#310223",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 35
  },
  "hsl": {
    "h": 317.872,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21296,
    "c": 0.08597,
    "h": 343.1
  },
  "luminance": 0.00818
}

Semantic roles & 50–950 ramp

primary
#310223
secondary
#197535
accent
#FF6929
background
#F6F4F5
surface
#ECE6E9
border
#C7C2C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310223

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

Preview Lab → · Contrast checker → · Palette generator →

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