#31196D#31196D

#31196D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.135 H 288.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#31196D
RGBrgb(49, 25, 109)
HSLhsl(257, 63%, 26%)
HSVhsv(257, 77%, 43%)
CMYKcmyk(55%, 77.1%, 0%, 57.3%)
CIE-LABlab(17.70, 33.91, -44.51)
CIE-LCHlch(17.70, 55.96, 307.30°)
OKLaboklab(30.56% 0.0436 -0.1279)
OKLCHoklch(30.56% 0.135 288.8)
XYZxyz(4.3738, 2.4522, 14.7079)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31196D #556D19
analogous
#192B6D #31196D #5B196D
triadic
#31196D #6D3119 #196D31
tetradic
#31196D #6D192B #556D19 #196D5B
square
#31196D #6D192B #556D19 #196D5B
split-complementary
#31196D #6D5B19 #2B6D19
monochromatic
#0B0619 #1B0E3B #31196D #47249F #5E31D0

Accessibility & contrast

On white

14.09
#31196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#31196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31196D
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31196D#FFFFFF#000000##FFFFFF
##31196D1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#1A3041
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #31196d;
/* rgb */ color: rgb(49, 25, 109);
/* oklch */ color: oklch(30.6% 0.135 288.8);
Tailwind
colors: {
  custom: {
    50: '#705898',
    500: '#31196d',
    950: '#000000',
  },
}
SCSS
$custom: #31196d;
$custom-light: #705898;
$custom-dark: #000000;
JSON
{
  "hex": "#31196d",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 257.143,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30559,
    "c": 0.13516,
    "h": 288.8
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

primary
#31196D
secondary
#86A23F
accent
#E642B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #31196D

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

Preview Lab → · Contrast checker → · Palette generator →

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