#31189F#31189F

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

Color values

HEX#31189F
RGBrgb(49, 24, 159)
HSLhsl(251, 74%, 36%)
HSVhsv(251, 85%, 62%)
CMYKcmyk(69.2%, 84.9%, 0%, 37.6%)
CIE-LABlab(23.03, 49.51, -67.21)
CIE-LCHlch(23.03, 83.47, 306.38°)
OKLaboklab(35.89% 0.0285 -0.1941)
OKLCHoklch(35.89% 0.196 278.4)
XYZxyz(7.8492, 3.8088, 33.1157)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31189F #869F18
analogous
#18429F #31189F #74189F
triadic
#31189F #9F3118 #189F31
tetradic
#31189F #9F1842 #869F18 #189F74
square
#31189F #9F1842 #869F18 #189F74
split-complementary
#31189F #9F7418 #429F18
monochromatic
#100835 #21106A #31189F #4120D4 #694DE4

Accessibility & contrast

On white

11.92
#31189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#31189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31189F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31189F#FFFFFF#000000##FFFFFF
##31189F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31189f;
/* rgb */ color: rgb(49, 24, 159);
/* oklch */ color: oklch(35.9% 0.196 278.4);
Tailwind
colors: {
  custom: {
    50: '#7b5bbd',
    500: '#31189f',
    950: '#000000',
  },
}
SCSS
$custom: #31189f;
$custom-light: #7b5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#31189f",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 251.111,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35892,
    "c": 0.19618,
    "h": 278.4
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#31189F
secondary
#B0C64D
accent
#F037CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #31189F

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

Preview Lab → · Contrast checker → · Palette generator →

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