#310239#310239

#310239 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.104 H 321.3°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#310239
RGBrgb(49, 2, 57)
HSLhsl(291, 93%, 12%)
HSVhsv(291, 96%, 22%)
CMYKcmyk(14%, 96.5%, 0%, 77.6%)
CIE-LABlab(8.92, 31.22, -23.26)
CIE-LCHlch(8.92, 38.94, 323.31°)
OKLaboklab(22.89% 0.0815 -0.0653)
OKLCHoklch(22.89% 0.104 321.3)
XYZxyz(2.0268, 0.9919, 3.9548)
Luminance0.0099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310239 #0A3902
analogous
#160239 #310239 #390226
triadic
#310239 #393102 #023931
tetradic
#310239 #391602 #0A3902 #022639
square
#310239 #391602 #0A3902 #022639
split-complementary
#310239 #263902 #023916
monochromatic
#19011E #19011E #310239 #640474 #9706AF

Accessibility & contrast

On white

17.52
#310239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310239
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310239#FFFFFF#000000##FFFFFF
##3102391.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#081B38
Tritanopia (blue-blind)
#310D1E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310239;
/* rgb */ color: rgb(49, 2, 57);
/* oklch */ color: oklch(22.9% 0.104 321.3);
Tailwind
colors: {
  custom: {
    50: '#6c4970',
    500: '#310239',
    950: '#000000',
  },
}
SCSS
$custom: #310239;
$custom-light: #6c4970;
$custom-dark: #000000;
JSON
{
  "hex": "#310239",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 291.273,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22893,
    "c": 0.10442,
    "h": 321.3
  },
  "luminance": 0.00992
}

Semantic roles & 50–950 ramp

primary
#310239
secondary
#297D1A
accent
#FF2948
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310239

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

Preview Lab → · Contrast checker → · Palette generator →

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