#311C96#311C96

#311C96 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.183 H 279.3°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#311C96
RGBrgb(49, 28, 150)
HSLhsl(250, 69%, 35%)
HSVhsv(250, 81%, 59%)
CMYKcmyk(67.3%, 81.3%, 0%, 41.2%)
CIE-LABlab(22.60, 45.03, -62.39)
CIE-LCHlch(22.60, 76.95, 305.82°)
OKLaboklab(35.29% 0.0296 -0.1802)
OKLCHoklch(35.29% 0.183 279.3)
XYZxyz(7.1851, 3.6849, 29.1809)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C96 #81961C
analogous
#1C4496 #311C96 #6E1C96
triadic
#311C96 #96311C #1C9631
tetradic
#311C96 #961C44 #81961C #1C966E
square
#311C96 #961C44 #81961C #1C966E
split-complementary
#311C96 #966E1C #44961C
monochromatic
#0F092F #201262 #311C96 #4226CA #674EDE

Accessibility & contrast

On white

12.09
#311C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#311C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C96
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C96#FFFFFF#000000##FFFFFF
##311C961.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311c96;
/* rgb */ color: rgb(49, 28, 150);
/* oklch */ color: oklch(35.3% 0.183 279.3);
Tailwind
colors: {
  custom: {
    50: '#785cb6',
    500: '#311c96',
    950: '#000000',
  },
}
SCSS
$custom: #311c96;
$custom-light: #785cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#311c96",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 250.328,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35293,
    "c": 0.18259,
    "h": 279.3
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#311C96
secondary
#ADC14D
accent
#EB3CCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311C96

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

Preview Lab → · Contrast checker → · Palette generator →

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