#311A96#311A96

#311A96 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.184 H 279.6°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#311A96
RGBrgb(49, 26, 150)
HSLhsl(251, 70%, 35%)
HSVhsv(251, 83%, 59%)
CMYKcmyk(67.3%, 82.7%, 0%, 41.2%)
CIE-LABlab(22.28, 45.97, -62.93)
CIE-LCHlch(22.28, 77.93, 306.15°)
OKLaboklab(35.07% 0.0306 -0.1817)
OKLCHoklch(35.07% 0.184 279.6)
XYZxyz(7.1393, 3.5932, 29.1656)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A96 #7F961A
analogous
#1A4196 #311A96 #6F1A96
triadic
#311A96 #96311A #1A9631
tetradic
#311A96 #961A41 #7F961A #1A966F
square
#311A96 #961A41 #7F961A #1A966F
split-complementary
#311A96 #966F1A #41961A
monochromatic
#0F082E #201162 #311A96 #4223CA #664BE0

Accessibility & contrast

On white

12.22
#311A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#311A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A96
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A96#FFFFFF#000000##FFFFFF
##311A961.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311a96;
/* rgb */ color: rgb(49, 26, 150);
/* oklch */ color: oklch(35.1% 0.184 279.6);
Tailwind
colors: {
  custom: {
    50: '#795bb6',
    500: '#311a96',
    950: '#000000',
  },
}
SCSS
$custom: #311a96;
$custom-light: #795bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#311a96",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 251.129,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3507,
    "c": 0.18425,
    "h": 279.6
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#311A96
secondary
#ABC24A
accent
#ED3BCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311A96

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

Preview Lab → · Contrast checker → · Palette generator →

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