#311A99#311A99

#311A99 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.188 H 279.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#311A99
RGBrgb(49, 26, 153)
HSLhsl(251, 71%, 35%)
HSVhsv(251, 83%, 60%)
CMYKcmyk(68%, 83%, 0%, 40%)
CIE-LABlab(22.62, 46.87, -64.20)
CIE-LCHlch(22.62, 79.49, 306.13°)
OKLaboklab(35.41% 0.0296 -0.1854)
OKLCHoklch(35.41% 0.188 279.1)
XYZxyz(7.3839, 3.6910, 30.4541)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A99 #82991A
analogous
#1A4399 #311A99 #701A99
triadic
#311A99 #99311A #1A9931
tetradic
#311A99 #991A43 #82991A #1A9970
square
#311A99 #991A43 #82991A #1A9970
split-complementary
#311A99 #99701A #43991A
monochromatic
#0F0830 #201165 #311A99 #4223CD #684DE1

Accessibility & contrast

On white

12.08
#311A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311A99
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A99#FFFFFF#000000##FFFFFF
##311A991.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311a99;
/* rgb */ color: rgb(49, 26, 153);
/* oklch */ color: oklch(35.4% 0.188 279.1);
Tailwind
colors: {
  custom: {
    50: '#795cb8',
    500: '#311a99',
    950: '#000000',
  },
}
SCSS
$custom: #311a99;
$custom-light: #795cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#311a99",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 250.866,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35408,
    "c": 0.18776,
    "h": 279.1
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#311A99
secondary
#ADC34C
accent
#EE3ACD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #311A99

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

Preview Lab → · Contrast checker → · Palette generator →

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