#311A9E#311A9E

#311A9E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.194 H 278.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#311A9E
RGBrgb(49, 26, 158)
HSLhsl(250, 72%, 36%)
HSVhsv(250, 84%, 62%)
CMYKcmyk(69%, 83.5%, 0%, 38%)
CIE-LABlab(23.20, 48.36, -66.31)
CIE-LCHlch(23.20, 82.07, 306.10°)
OKLaboklab(35.98% 0.028 -0.1915)
OKLCHoklch(35.98% 0.194 278.3)
XYZxyz(7.8056, 3.8597, 32.6748)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A9E #879E1A
analogous
#1A459E #311A9E #731A9E
triadic
#311A9E #9E311A #1A9E31
tetradic
#311A9E #9E1A45 #879E1A #1A9E73
square
#311A9E #9E1A45 #879E1A #1A9E73
split-complementary
#311A9E #9E731A #459E1A
monochromatic
#100935 #211169 #311A9E #4123D3 #6A50E2

Accessibility & contrast

On white

11.85
#311A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311A9E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A9E#FFFFFF#000000##FFFFFF
##311A9E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311a9e;
/* rgb */ color: rgb(49, 26, 158);
/* oklch */ color: oklch(36.0% 0.194 278.3);
Tailwind
colors: {
  custom: {
    50: '#7a5cbc',
    500: '#311a9e',
    950: '#000000',
  },
}
SCSS
$custom: #311a9e;
$custom-light: #7a5cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#311a9e",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 250.455,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35977,
    "c": 0.19356,
    "h": 278.3
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#311A9E
secondary
#B0C54F
accent
#EE39CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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