#31189B#31189B

#31189B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.192 H 279.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#31189B
RGBrgb(49, 24, 155)
HSLhsl(251, 73%, 35%)
HSVhsv(251, 85%, 61%)
CMYKcmyk(68.4%, 84.5%, 0%, 39.2%)
CIE-LABlab(22.56, 48.34, -65.54)
CIE-LCHlch(22.56, 81.44, 306.41°)
OKLaboklab(35.43% 0.0299 -0.1893)
OKLCHoklch(35.43% 0.192 279)
XYZxyz(7.5078, 3.6722, 31.3171)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31189B #829B18
analogous
#18419B #31189B #72189B
triadic
#31189B #9B3118 #189B31
tetradic
#31189B #9B1841 #829B18 #189B72
square
#31189B #9B1841 #829B18 #189B72
split-complementary
#31189B #9B7218 #419B18
monochromatic
#0F0831 #201066 #31189B #4220D0 #684AE3

Accessibility & contrast

On white

12.11
#31189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#31189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31189B
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31189B#FFFFFF#000000##FFFFFF
##31189B1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31189b;
/* rgb */ color: rgb(49, 24, 155);
/* oklch */ color: oklch(35.4% 0.192 279.0);
Tailwind
colors: {
  custom: {
    50: '#7a5bba',
    500: '#31189b',
    950: '#000000',
  },
}
SCSS
$custom: #31189b;
$custom-light: #7a5bba;
$custom-dark: #000000;
JSON
{
  "hex": "#31189b",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 251.45,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35431,
    "c": 0.1916,
    "h": 279
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#31189B
secondary
#ADC54A
accent
#F038CD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #31189B

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

Preview Lab → · Contrast checker → · Palette generator →

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