#31196B#31196B

#31196B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.133 H 289.4°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#31196B
RGBrgb(49, 25, 107)
HSLhsl(258, 62%, 26%)
HSVhsv(258, 77%, 42%)
CMYKcmyk(54.2%, 76.6%, 0%, 58%)
CIE-LABlab(17.50, 33.29, -43.53)
CIE-LCHlch(17.50, 54.80, 307.41°)
OKLaboklab(30.36% 0.0441 -0.125)
OKLCHoklch(30.36% 0.133 289.4)
XYZxyz(4.2673, 2.4096, 14.1473)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31196B #536B19
analogous
#192A6B #31196B #5A196B
triadic
#31196B #6B3119 #196B31
tetradic
#31196B #6B192A #536B19 #196B5A
square
#31196B #6B192A #536B19 #196B5A
split-complementary
#31196B #6B5A19 #2A6B19
monochromatic
#0B0619 #1A0D39 #31196B #48259D #5E30CE

Accessibility & contrast

On white

14.17
#31196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#31196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31196B
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31196B#FFFFFF#000000##FFFFFF
##31196B1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#1C2F40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #31196b;
/* rgb */ color: rgb(49, 25, 107);
/* oklch */ color: oklch(30.4% 0.133 289.4);
Tailwind
colors: {
  custom: {
    50: '#705896',
    500: '#31196b',
    950: '#000000',
  },
}
SCSS
$custom: #31196b;
$custom-light: #705896;
$custom-dark: #000000;
JSON
{
  "hex": "#31196b",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 257.561,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30361,
    "c": 0.1326,
    "h": 289.4
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#31196B
secondary
#84A13F
accent
#E543B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #31196B

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

Preview Lab → · Contrast checker → · Palette generator →

#31196B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva