#310226#310226

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

Color values

HEX#310226
RGBrgb(49, 2, 38)
HSLhsl(314, 92%, 10%)
HSVhsv(314, 96%, 19%)
CMYKcmyk(0%, 95.9%, 22.4%, 80.8%)
CIE-LABlab(7.56, 27.62, -11.34)
CIE-LCHlch(7.56, 29.86, 337.68°)
OKLaboklab(21.48% 0.0827 -0.0308)
OKLCHoklch(21.48% 0.088 339.6)
XYZxyz(1.6382, 0.8365, 1.9085)
Luminance0.0084 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310226 #02310D
analogous
#250231 #310226 #31020E
triadic
#310226 #263102 #022631
tetradic
#310226 #312502 #02310D #020E31
square
#310226 #312502 #02310D #020E31
split-complementary
#310226 #0E3102 #023125
monochromatic
#1D0117 #1D0117 #310226 #6C0454 #A70781

Accessibility & contrast

On white

17.99
#310226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310226
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310226#FFFFFF#000000##FFFFFF
##3102261.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041227
Deuteranopia (green-blind)
#151925
Tritanopia (blue-blind)
#350313
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310226;
/* rgb */ color: rgb(49, 2, 38);
/* oklch */ color: oklch(21.5% 0.088 339.6);
Tailwind
colors: {
  custom: {
    50: '#6c4860',
    500: '#310226',
    950: '#000000',
  },
}
SCSS
$custom: #310226;
$custom-light: #6c4860;
$custom-dark: #000000;
JSON
{
  "hex": "#310226",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 314.043,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21479,
    "c": 0.08821,
    "h": 339.6
  },
  "luminance": 0.00836
}

Semantic roles & 50–950 ramp

primary
#310226
secondary
#19752F
accent
#FF5B29
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #310226

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

Preview Lab → · Contrast checker → · Palette generator →

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