#311993#311993

#311993 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.182 H 280.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#311993
RGBrgb(49, 25, 147)
HSLhsl(252, 71%, 34%)
HSVhsv(252, 83%, 58%)
CMYKcmyk(66.7%, 83%, 0%, 42.4%)
CIE-LABlab(21.78, 45.53, -61.90)
CIE-LCHlch(21.78, 76.84, 306.34°)
OKLaboklab(34.62% 0.0321 -0.1787)
OKLCHoklch(34.62% 0.182 280.2)
XYZxyz(6.8790, 3.4543, 27.9023)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311993 #7B9319
analogous
#193E93 #311993 #6E1993
triadic
#311993 #933119 #199331
tetradic
#311993 #93193E #7B9319 #19936E
square
#311993 #93193E #7B9319 #19936E
split-complementary
#311993 #936E19 #3E9319
monochromatic
#0E072A #20105F #311993 #4222C7 #6547E0

Accessibility & contrast

On white

12.42
#311993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#311993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311993
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311993#FFFFFF#000000##FFFFFF
##3119931.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311993;
/* rgb */ color: rgb(49, 25, 147);
/* oklch */ color: oklch(34.6% 0.182 280.2);
Tailwind
colors: {
  custom: {
    50: '#785bb4',
    500: '#311993',
    950: '#000000',
  },
}
SCSS
$custom: #311993;
$custom-light: #785bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#311993",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 147
  },
  "hsl": {
    "h": 251.803,
    "s": 70.93,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34624,
    "c": 0.18154,
    "h": 280.2
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

primary
#311993
secondary
#A9C147
accent
#EE3ACA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311993

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

Preview Lab → · Contrast checker → · Palette generator →

#311993 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva