#31196A#31196A

#31196A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.131 H 289.7°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#31196A
RGBrgb(49, 25, 106)
HSLhsl(258, 62%, 26%)
HSVhsv(258, 76%, 42%)
CMYKcmyk(53.8%, 76.4%, 0%, 58.4%)
CIE-LABlab(17.41, 32.98, -43.04)
CIE-LCHlch(17.41, 54.22, 307.46°)
OKLaboklab(30.26% 0.0444 -0.1236)
OKLCHoklch(30.26% 0.131 289.7)
XYZxyz(4.2150, 2.3887, 13.8718)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31196A #526A19
analogous
#19296A #31196A #59196A
triadic
#31196A #6A3119 #196A31
tetradic
#31196A #6A1929 #526A19 #196A59
square
#31196A #6A1929 #526A19 #196A59
split-complementary
#31196A #6A5919 #296A19
monochromatic
#0B0619 #1A0D38 #31196A #48259C #5F30CD

Accessibility & contrast

On white

14.21
#31196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31196A
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31196A#FFFFFF#000000##FFFFFF
##31196A1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002968
Tritanopia (blue-blind)
#1D2F40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #31196a;
/* rgb */ color: rgb(49, 25, 106);
/* oklch */ color: oklch(30.3% 0.131 289.7);
Tailwind
colors: {
  custom: {
    50: '#705895',
    500: '#31196a',
    950: '#000000',
  },
}
SCSS
$custom: #31196a;
$custom-light: #705895;
$custom-dark: #000000;
JSON
{
  "hex": "#31196a",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 257.778,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30262,
    "c": 0.13132,
    "h": 289.7
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#31196A
secondary
#83A03F
accent
#E543B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #31196A

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

Preview Lab → · Contrast checker → · Palette generator →

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