#310234#310234

#310234 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.5% C 0.100 H 325.5°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#310234
RGBrgb(49, 2, 52)
HSLhsl(296, 93%, 11%)
HSVhsv(296, 96%, 20%)
CMYKcmyk(5.8%, 96.2%, 0%, 79.6%)
CIE-LABlab(8.52, 30.20, -20.27)
CIE-LCHlch(8.52, 36.37, 326.13°)
OKLaboklab(22.48% 0.0824 -0.0566)
OKLCHoklch(22.48% 0.1 325.5)
XYZxyz(1.9081, 0.9445, 3.3299)
Luminance0.0094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310234 #053402
analogous
#180234 #310234 #34021E
triadic
#310234 #343102 #023431
tetradic
#310234 #341802 #053402 #021E34
square
#310234 #341802 #053402 #021E34
split-complementary
#310234 #1E3402 #023418
monochromatic
#1C011D #1C011D #310234 #69046F #A007AA

Accessibility & contrast

On white

17.66
#310234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310234 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310234
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310234#FFFFFF#000000##FFFFFF
##3102341.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001535
Deuteranopia (green-blind)
#0D1A33
Tritanopia (blue-blind)
#320B1B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310234;
/* rgb */ color: rgb(49, 2, 52);
/* oklch */ color: oklch(22.5% 0.100 325.5);
Tailwind
colors: {
  custom: {
    50: '#6c496c',
    500: '#310234',
    950: '#000000',
  },
}
SCSS
$custom: #310234;
$custom-light: #6c496c;
$custom-dark: #000000;
JSON
{
  "hex": "#310234",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 52
  },
  "hsl": {
    "h": 296.4,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22482,
    "c": 0.09993,
    "h": 325.5
  },
  "luminance": 0.00944
}

Semantic roles & 50–950 ramp

primary
#310234
secondary
#1F781A
accent
#FF2936
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310234

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

Preview Lab → · Contrast checker → · Palette generator →

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