#311884#311884

#311884 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.165 H 283.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#311884
RGBrgb(49, 24, 132)
HSLhsl(254, 69%, 31%)
HSVhsv(254, 82%, 52%)
CMYKcmyk(62.9%, 81.8%, 0%, 48.2%)
CIE-LABlab(19.93, 41.49, -55.58)
CIE-LCHlch(19.93, 69.36, 306.74°)
OKLaboklab(32.85% 0.0375 -0.1603)
OKLCHoklch(32.85% 0.165 283.2)
XYZxyz(5.7568, 2.9718, 22.0956)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311884 #6B8418
analogous
#183584 #311884 #671884
triadic
#311884 #843118 #188431
tetradic
#311884 #841835 #6B8418 #188467
square
#311884 #841835 #6B8418 #188467
split-complementary
#311884 #846718 #358418
monochromatic
#0B051C #1E0F50 #311884 #4421B8 #603BDB

Accessibility & contrast

On white

13.17
#311884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#311884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311884
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311884#FFFFFF#000000##FFFFFF
##3118841.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311884;
/* rgb */ color: rgb(49, 24, 132);
/* oklch */ color: oklch(32.8% 0.165 283.2);
Tailwind
colors: {
  custom: {
    50: '#7559a9',
    500: '#311884',
    950: '#000000',
  },
}
SCSS
$custom: #311884;
$custom-light: #7559a9;
$custom-dark: #000000;
JSON
{
  "hex": "#311884",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 253.889,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32846,
    "c": 0.1646,
    "h": 283.2
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#311884
secondary
#9CB840
accent
#EC3CC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311884

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

Preview Lab → · Contrast checker → · Palette generator →

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