#311C93#311C93

#311C93 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.179 H 279.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#311C93
RGBrgb(49, 28, 147)
HSLhsl(251, 68%, 34%)
HSVhsv(251, 81%, 58%)
CMYKcmyk(66.7%, 81%, 0%, 42.4%)
CIE-LABlab(22.27, 44.11, -61.09)
CIE-LCHlch(22.27, 75.36, 305.83°)
OKLaboklab(34.96% 0.0305 -0.1764)
OKLCHoklch(34.96% 0.179 279.8)
XYZxyz(6.9467, 3.5895, 27.9249)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C93 #7E931C
analogous
#1C4393 #311C93 #6D1C93
triadic
#311C93 #93311C #1C9331
tetradic
#311C93 #931C43 #7E931C #1C936D
square
#311C93 #931C43 #7E931C #1C936D
split-complementary
#311C93 #936D1C #43931C
monochromatic
#0F082C #201260 #311C93 #4226C6 #664CDD

Accessibility & contrast

On white

12.22
#311C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#311C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C93
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C93#FFFFFF#000000##FFFFFF
##311C931.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311c93;
/* rgb */ color: rgb(49, 28, 147);
/* oklch */ color: oklch(35.0% 0.179 279.8);
Tailwind
colors: {
  custom: {
    50: '#785cb4',
    500: '#311c93',
    950: '#000000',
  },
}
SCSS
$custom: #311c93;
$custom-light: #785cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#311c93",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 250.588,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34961,
    "c": 0.17901,
    "h": 279.8
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#311C93
secondary
#ABBF4C
accent
#EB3DCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311C93

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

Preview Lab → · Contrast checker → · Palette generator →

#311C93 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva