#311C85#311C85

#311C85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.162 H 282.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#311C85
RGBrgb(49, 28, 133)
HSLhsl(252, 65%, 32%)
HSVhsv(252, 79%, 52%)
CMYKcmyk(63.2%, 78.9%, 0%, 47.8%)
CIE-LABlab(20.74, 39.78, -54.88)
CIE-LCHlch(20.74, 67.78, 305.94°)
OKLaboklab(33.44% 0.0347 -0.1583)
OKLCHoklch(33.44% 0.162 282.3)
XYZxyz(5.9142, 3.1765, 22.4872)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C85 #70851C
analogous
#1C3C85 #311C85 #661C85
triadic
#311C85 #85311C #1C8531
tetradic
#311C85 #851C3C #70851C #1C8566
square
#311C85 #851C3C #70851C #1C8566
split-complementary
#311C85 #85661C #3C851C
monochromatic
#0C0720 #1E1152 #311C85 #4427B8 #6144D8

Accessibility & contrast

On white

12.84
#311C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#311C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C85
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C85#FFFFFF#000000##FFFFFF
##311C851.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311c85;
/* rgb */ color: rgb(49, 28, 133);
/* oklch */ color: oklch(33.4% 0.162 282.3);
Tailwind
colors: {
  custom: {
    50: '#755baa',
    500: '#311c85',
    950: '#000000',
  },
}
SCSS
$custom: #311c85;
$custom-light: #755baa;
$custom-dark: #000000;
JSON
{
  "hex": "#311c85",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 252,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33441,
    "c": 0.16202,
    "h": 282.3
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#311C85
secondary
#A1B845
accent
#E840C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311C85

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

Preview Lab → · Contrast checker → · Palette generator →

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