#31149F#31149F

#31149F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.199 H 278.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#31149F
RGBrgb(49, 20, 159)
HSLhsl(253, 78%, 35%)
HSVhsv(253, 87%, 62%)
CMYKcmyk(69.2%, 87.4%, 0%, 37.6%)
CIE-LABlab(22.50, 51.08, -68.09)
CIE-LCHlch(22.50, 85.12, 306.88°)
OKLaboklab(35.53% 0.03 -0.1966)
OKLCHoklch(35.53% 0.199 278.7)
XYZxyz(7.7728, 3.6558, 33.0902)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31149F #829F14
analogous
#143C9F #31149F #77149F
triadic
#31149F #9F3114 #149F31
tetradic
#31149F #9F143C #829F14 #149F77
square
#31149F #9F143C #829F14 #149F77
split-complementary
#31149F #9F7714 #3C9F14
monochromatic
#0F0632 #200D69 #31149F #421BD5 #6846E8

Accessibility & contrast

On white

12.13
#31149F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#31149F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31149F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31149F#FFFFFF#000000##FFFFFF
##31149F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31149f;
/* rgb */ color: rgb(49, 20, 159);
/* oklch */ color: oklch(35.5% 0.199 278.7);
Tailwind
colors: {
  custom: {
    50: '#7b59bd',
    500: '#31149f',
    950: '#000000',
  },
}
SCSS
$custom: #31149f;
$custom-light: #7b59bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31149f",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 159
  },
  "hsl": {
    "h": 252.518,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3553,
    "c": 0.19885,
    "h": 278.7
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#31149F
secondary
#ADC846
accent
#F434CC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #31149F

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

Preview Lab → · Contrast checker → · Palette generator →

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