#311B85#311B85

#311B85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.163 H 282.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#311B85
RGBrgb(49, 27, 133)
HSLhsl(252, 66%, 31%)
HSVhsv(252, 80%, 52%)
CMYKcmyk(63.2%, 79.7%, 0%, 47.8%)
CIE-LABlab(20.56, 40.30, -55.18)
CIE-LCHlch(20.56, 68.33, 306.14°)
OKLaboklab(33.32% 0.0353 -0.1591)
OKLCHoklch(33.32% 0.163 282.5)
XYZxyz(5.8909, 3.1299, 22.4795)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B85 #6F851B
analogous
#1B3A85 #311B85 #661B85
triadic
#311B85 #85311B #1B8531
tetradic
#311B85 #851B3A #6F851B #1B8566
square
#311B85 #851B3A #6F851B #1B8566
split-complementary
#311B85 #85661B #3A851B
monochromatic
#0C061F #1E1152 #311B85 #4425B8 #6142D9

Accessibility & contrast

On white

12.92
#311B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#311B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B85
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B85#FFFFFF#000000##FFFFFF
##311B851.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311b85;
/* rgb */ color: rgb(49, 27, 133);
/* oklch */ color: oklch(33.3% 0.163 282.5);
Tailwind
colors: {
  custom: {
    50: '#755baa',
    500: '#311b85',
    950: '#000000',
  },
}
SCSS
$custom: #311b85;
$custom-light: #755baa;
$custom-dark: #000000;
JSON
{
  "hex": "#311b85",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 252.453,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33315,
    "c": 0.163,
    "h": 282.5
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#311B85
secondary
#A0B844
accent
#E93FC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311B85

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

Preview Lab → · Contrast checker → · Palette generator →

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