#311888#311888

#311888 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.169 H 282.3°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#311888
RGBrgb(49, 24, 136)
HSLhsl(253, 70%, 31%)
HSVhsv(253, 82%, 53%)
CMYKcmyk(64%, 82.4%, 0%, 46.7%)
CIE-LABlab(20.37, 42.69, -57.36)
CIE-LCHlch(20.37, 71.51, 306.66°)
OKLaboklab(33.29% 0.0362 -0.1655)
OKLCHoklch(33.29% 0.169 282.3)
XYZxyz(6.0358, 3.0834, 23.5649)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311888 #6F8818
analogous
#183788 #311888 #691888
triadic
#311888 #883118 #188831
tetradic
#311888 #881837 #6F8818 #188869
square
#311888 #881837 #6F8818 #188869
split-complementary
#311888 #886918 #378818
monochromatic
#0C0620 #1E0F54 #311888 #4421BC #613EDD

Accessibility & contrast

On white

12.99
#311888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#311888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311888
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311888#FFFFFF#000000##FFFFFF
##3118881.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311888;
/* rgb */ color: rgb(49, 24, 136);
/* oklch */ color: oklch(33.3% 0.169 282.3);
Tailwind
colors: {
  custom: {
    50: '#7659ac',
    500: '#311888',
    950: '#000000',
  },
}
SCSS
$custom: #311888;
$custom-light: #7659ac;
$custom-dark: #000000;
JSON
{
  "hex": "#311888",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 253.393,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33286,
    "c": 0.16938,
    "h": 282.3
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#311888
secondary
#A0BC40
accent
#ED3BC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311888

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

Preview Lab → · Contrast checker → · Palette generator →

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