#311B89#311B89

#311B89 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.168 H 281.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#311B89
RGBrgb(49, 27, 137)
HSLhsl(252, 67%, 32%)
HSVhsv(252, 80%, 54%)
CMYKcmyk(64.2%, 80.3%, 0%, 46.3%)
CIE-LABlab(20.99, 41.54, -56.97)
CIE-LCHlch(20.99, 70.51, 306.09°)
OKLaboklab(33.75% 0.0341 -0.1644)
OKLCHoklch(33.75% 0.168 281.7)
XYZxyz(6.1725, 3.2425, 23.9627)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B89 #73891B
analogous
#1B3C89 #311B89 #681B89
triadic
#311B89 #89311B #1B8931
tetradic
#311B89 #891B3C #73891B #1B8968
square
#311B89 #891B3C #73891B #1B8968
split-complementary
#311B89 #89681B #3C891B
monochromatic
#0C0723 #1F1156 #311B89 #4325BC #6244DA

Accessibility & contrast

On white

12.74
#311B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#311B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B89
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B89#FFFFFF#000000##FFFFFF
##311B891.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311b89;
/* rgb */ color: rgb(49, 27, 137);
/* oklch */ color: oklch(33.7% 0.168 281.7);
Tailwind
colors: {
  custom: {
    50: '#765bad',
    500: '#311b89',
    950: '#000000',
  },
}
SCSS
$custom: #311b89;
$custom-light: #765bad;
$custom-dark: #000000;
JSON
{
  "hex": "#311b89",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 252,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33746,
    "c": 0.16787,
    "h": 281.7
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#311B89
secondary
#A4BC44
accent
#EA3EC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311B89

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

Preview Lab → · Contrast checker → · Palette generator →

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