#31199E#31199E

#31199E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.194 H 278.4°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#31199E
RGBrgb(49, 25, 158)
HSLhsl(251, 73%, 36%)
HSVhsv(251, 84%, 62%)
CMYKcmyk(69%, 84.2%, 0%, 38%)
CIE-LABlab(23.05, 48.79, -66.56)
CIE-LCHlch(23.05, 82.53, 306.25°)
OKLaboklab(35.88% 0.0285 -0.1922)
OKLCHoklch(35.88% 0.194 278.4)
XYZxyz(7.7838, 3.8162, 32.6675)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31199E #869E19
analogous
#19439E #31199E #73199E
triadic
#31199E #9E3119 #199E31
tetradic
#31199E #9E1943 #869E19 #199E73
square
#31199E #9E1943 #869E19 #199E73
split-complementary
#31199E #9E7319 #439E19
monochromatic
#100834 #211169 #31199E #4121D3 #694EE3

Accessibility & contrast

On white

11.91
#31199E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#31199E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31199E
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31199E#FFFFFF#000000##FFFFFF
##31199E1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.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: #31199e;
/* rgb */ color: rgb(49, 25, 158);
/* oklch */ color: oklch(35.9% 0.194 278.4);
Tailwind
colors: {
  custom: {
    50: '#7a5cbc',
    500: '#31199e',
    950: '#000000',
  },
}
SCSS
$custom: #31199e;
$custom-light: #7a5cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31199e",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 158
  },
  "hsl": {
    "h": 250.827,
    "s": 72.678,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35875,
    "c": 0.19431,
    "h": 278.4
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#31199E
secondary
#B0C54E
accent
#EF38CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #31199E

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

Preview Lab → · Contrast checker → · Palette generator →

#31199E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva