#311693#311693

#311693 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.184 H 280.5°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#311693
RGBrgb(49, 22, 147)
HSLhsl(253, 74%, 33%)
HSVhsv(253, 85%, 58%)
CMYKcmyk(66.7%, 85%, 0%, 42.4%)
CIE-LABlab(21.33, 46.85, -62.64)
CIE-LCHlch(21.33, 78.22, 306.79°)
OKLaboklab(34.32% 0.0335 -0.1808)
OKLCHoklch(34.32% 0.184 280.5)
XYZxyz(6.8183, 3.3328, 27.8821)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311693 #789316
analogous
#163993 #311693 #6F1693
triadic
#311693 #933116 #169331
tetradic
#311693 #931639 #789316 #16936F
square
#311693 #931639 #789316 #16936F
split-complementary
#311693 #936F16 #399316
monochromatic
#0E0629 #1F0E5E #311693 #431EC8 #6441E3

Accessibility & contrast

On white

12.60
#311693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#311693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##311693#FFFFFF#000000##FFFFFF
##3116931.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)
#003796
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #311693;
/* rgb */ color: rgb(49, 22, 147);
/* oklch */ color: oklch(34.3% 0.184 280.5);
Tailwind
colors: {
  custom: {
    50: '#7859b4',
    500: '#311693',
    950: '#000000',
  },
}
SCSS
$custom: #311693;
$custom-light: #7859b4;
$custom-dark: #000000;
JSON
{
  "hex": "#311693",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 147
  },
  "hsl": {
    "h": 252.96,
    "s": 73.964,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34315,
    "c": 0.18387,
    "h": 280.5
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#311693
secondary
#A7C342
accent
#F137C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311693

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

Preview Lab → · Contrast checker → · Palette generator →

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