#311584#311584

#311584 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.167 H 283.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#311584
RGBrgb(49, 21, 132)
HSLhsl(255, 73%, 30%)
HSVhsv(255, 84%, 52%)
CMYKcmyk(62.9%, 84.1%, 0%, 48.2%)
CIE-LABlab(19.45, 42.88, -56.37)
CIE-LCHlch(19.45, 70.82, 307.26°)
OKLaboklab(32.52% 0.0393 -0.1625)
OKLCHoklch(32.52% 0.167 283.6)
XYZxyz(5.6984, 2.8549, 22.0761)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311584 #688415
analogous
#153184 #311584 #681584
triadic
#311584 #843115 #158431
tetradic
#311584 #841531 #688415 #158468
square
#311584 #841531 #688415 #158468
split-complementary
#311584 #846815 #318415
monochromatic
#0A041A #1D0D4F #311584 #451DB9 #6035DF

Accessibility & contrast

On white

13.37
#311584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#311584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311584
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311584#FFFFFF#000000##FFFFFF
##3115841.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00374E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #311584;
/* rgb */ color: rgb(49, 21, 132);
/* oklch */ color: oklch(32.5% 0.167 283.6);
Tailwind
colors: {
  custom: {
    50: '#7558a9',
    500: '#311584',
    950: '#000000',
  },
}
SCSS
$custom: #311584;
$custom-light: #7558a9;
$custom-dark: #000000;
JSON
{
  "hex": "#311584",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 255.135,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.32516,
    "c": 0.1672,
    "h": 283.6
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#311584
secondary
#99B93C
accent
#EF39C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #311584

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

Preview Lab → · Contrast checker → · Palette generator →

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