#310230#310230

#310230 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.096 H 329.2°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#310230
RGBrgb(49, 2, 48)
HSLhsl(301, 92%, 10%)
HSVhsv(301, 96%, 19%)
CMYKcmyk(0%, 95.9%, 2%, 80.8%)
CIE-LABlab(8.22, 29.43, -17.80)
CIE-LCHlch(8.22, 34.39, 328.82°)
OKLaboklab(22.17% 0.0828 -0.0494)
OKLCHoklch(22.17% 0.096 329.2)
XYZxyz(1.8218, 0.9099, 2.8754)
Luminance0.0091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310230 #023103
analogous
#1B0231 #310230 #310218
triadic
#310230 #303102 #023031
tetradic
#310230 #311B02 #023103 #021831
square
#310230 #311B02 #023103 #021831
split-complementary
#310230 #183102 #02311B
monochromatic
#1D011D #1D011D #310230 #6C046A #A707A3

Accessibility & contrast

On white

17.77
#310230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310230
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310230#FFFFFF#000000##FFFFFF
##3102301.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001431
Deuteranopia (green-blind)
#101A2F
Tritanopia (blue-blind)
#330819
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310230;
/* rgb */ color: rgb(49, 2, 48);
/* oklch */ color: oklch(22.2% 0.096 329.2);
Tailwind
colors: {
  custom: {
    50: '#6c4968',
    500: '#310230',
    950: '#000000',
  },
}
SCSS
$custom: #310230;
$custom-light: #6c4968;
$custom-dark: #000000;
JSON
{
  "hex": "#310230",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 48
  },
  "hsl": {
    "h": 301.277,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.22172,
    "c": 0.09642,
    "h": 329.2
  },
  "luminance": 0.0091
}

Semantic roles & 50–950 ramp

primary
#310230
secondary
#19751B
accent
#FF2D29
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310230

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

Preview Lab → · Contrast checker → · Palette generator →

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