#31198F#31198F

#31198F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.177 H 280.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#31198F
RGBrgb(49, 25, 143)
HSLhsl(252, 70%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(65.7%, 82.5%, 0%, 43.9%)
CIE-LABlab(21.32, 44.33, -60.17)
CIE-LCHlch(21.32, 74.74, 306.38°)
OKLaboklab(34.17% 0.0334 -0.1737)
OKLCHoklch(34.17% 0.177 280.9)
XYZxyz(6.5706, 3.3309, 26.2779)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31198F #778F19
analogous
#193C8F #31198F #6C198F
triadic
#31198F #8F3119 #198F31
tetradic
#31198F #8F193C #778F19 #198F6C
square
#31198F #8F193C #778F19 #198F6C
split-complementary
#31198F #8F6C19 #3C8F19
monochromatic
#0D0727 #1F105B #31198F #4322C3 #6344DE

Accessibility & contrast

On white

12.60
#31198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#31198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31198F
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31198F#FFFFFF#000000##FFFFFF
##31198F1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #31198f;
/* rgb */ color: rgb(49, 25, 143);
/* oklch */ color: oklch(34.2% 0.177 280.9);
Tailwind
colors: {
  custom: {
    50: '#775ab1',
    500: '#31198f',
    950: '#000000',
  },
}
SCSS
$custom: #31198f;
$custom-light: #775ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#31198f",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 252.203,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34175,
    "c": 0.17684,
    "h": 280.9
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#31198F
secondary
#A6BF44
accent
#ED3BC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #31198F

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

Preview Lab → · Contrast checker → · Palette generator →

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