#311A9D#311A9D

#311A9D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.192 H 278.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#311A9D
RGBrgb(49, 26, 157)
HSLhsl(251, 72%, 36%)
HSVhsv(251, 83%, 62%)
CMYKcmyk(68.8%, 83.4%, 0%, 38.4%)
CIE-LABlab(23.09, 48.06, -65.89)
CIE-LCHlch(23.09, 81.56, 306.11°)
OKLaboklab(35.86% 0.0284 -0.1903)
OKLCHoklch(35.86% 0.192 278.5)
XYZxyz(7.7199, 3.8254, 32.2233)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A9D #869D1A
analogous
#1A449D #311A9D #721A9D
triadic
#311A9D #9D311A #1A9D31
tetradic
#311A9D #9D1A44 #869D1A #1A9D72
square
#311A9D #9D1A44 #869D1A #1A9D72
split-complementary
#311A9D #9D721A #449D1A
monochromatic
#100934 #211168 #311A9D #4123D2 #694FE2

Accessibility & contrast

On white

11.90
#311A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#311A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A9D
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A9D#FFFFFF#000000##FFFFFF
##311A9D1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311a9d;
/* rgb */ color: rgb(49, 26, 157);
/* oklch */ color: oklch(35.9% 0.192 278.5);
Tailwind
colors: {
  custom: {
    50: '#7a5cbb',
    500: '#311a9d',
    950: '#000000',
  },
}
SCSS
$custom: #311a9d;
$custom-light: #7a5cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#311a9d",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 250.534,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35863,
    "c": 0.19241,
    "h": 278.5
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#311A9D
secondary
#B0C44E
accent
#EE39CF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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