#31197B#31197B

#31197B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.153 H 285.1°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#31197B
RGBrgb(49, 25, 123)
HSLhsl(255, 66%, 29%)
HSVhsv(255, 80%, 48%)
CMYKcmyk(60.2%, 79.7%, 0%, 51.8%)
CIE-LABlab(19.13, 38.24, -51.19)
CIE-LCHlch(19.13, 63.89, 306.76°)
OKLaboklab(32% 0.0397 -0.1475)
OKLCHoklch(32% 0.153 285.1)
XYZxyz(5.1883, 2.7780, 18.9979)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31197B #637B19
analogous
#19327B #31197B #62197B
triadic
#31197B #7B3119 #197B31
tetradic
#31197B #7B1932 #637B19 #197B62
square
#31197B #7B1932 #637B19 #197B62
split-complementary
#31197B #7B6219 #327B19
monochromatic
#0A0519 #1D0F48 #31197B #4523AE #5F38D7

Accessibility & contrast

On white

13.50
#31197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#31197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31197B
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31197B#FFFFFF#000000##FFFFFF
##31197B1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#083549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #31197b;
/* rgb */ color: rgb(49, 25, 123);
/* oklch */ color: oklch(32.0% 0.153 285.1);
Tailwind
colors: {
  custom: {
    50: '#7359a2',
    500: '#31197b',
    950: '#000000',
  },
}
SCSS
$custom: #31197b;
$custom-light: #7359a2;
$custom-dark: #000000;
JSON
{
  "hex": "#31197b",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 254.694,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31999,
    "c": 0.1527,
    "h": 285.1
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#31197B
secondary
#94AF40
accent
#E93FBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #31197B

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

Preview Lab → · Contrast checker → · Palette generator →

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