#311D89#311D89

#311D89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.166 H 281.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#311D89
RGBrgb(49, 29, 137)
HSLhsl(251, 65%, 33%)
HSVhsv(251, 79%, 54%)
CMYKcmyk(64.2%, 78.8%, 0%, 46.3%)
CIE-LABlab(21.35, 40.51, -56.38)
CIE-LCHlch(21.35, 69.43, 305.69°)
OKLaboklab(34% 0.0329 -0.1627)
OKLCHoklch(34% 0.166 281.4)
XYZxyz(6.2199, 3.3374, 23.9785)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D89 #75891D
analogous
#1D3F89 #311D89 #671D89
triadic
#311D89 #89311D #1D8931
tetradic
#311D89 #891D3F #75891D #1D8967
square
#311D89 #891D3F #75891D #1D8967
split-complementary
#311D89 #89671D #3F891D
monochromatic
#0D0824 #1F1256 #311D89 #4328BC #6348D8

Accessibility & contrast

On white

12.59
#311D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#311D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D89
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D89#FFFFFF#000000##FFFFFF
##311D891.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #311d89;
/* rgb */ color: rgb(49, 29, 137);
/* oklch */ color: oklch(34.0% 0.166 281.4);
Tailwind
colors: {
  custom: {
    50: '#765cad',
    500: '#311d89',
    950: '#000000',
  },
}
SCSS
$custom: #311d89;
$custom-light: #765cad;
$custom-dark: #000000;
JSON
{
  "hex": "#311d89",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 251.111,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33996,
    "c": 0.16597,
    "h": 281.4
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#311D89
secondary
#A5BA47
accent
#E840C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311D89

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

Preview Lab → · Contrast checker → · Palette generator →

#311D89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva