#311C83#311C83

#311C83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.160 H 282.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#311C83
RGBrgb(49, 28, 131)
HSLhsl(252, 65%, 31%)
HSVhsv(252, 79%, 51%)
CMYKcmyk(62.6%, 78.6%, 0%, 48.6%)
CIE-LABlab(20.53, 39.16, -53.97)
CIE-LCHlch(20.53, 66.68, 305.96°)
OKLaboklab(33.23% 0.0352 -0.1556)
OKLCHoklch(33.23% 0.16 282.8)
XYZxyz(5.7773, 3.1218, 21.7664)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C83 #6E831C
analogous
#1C3A83 #311C83 #641C83
triadic
#311C83 #83311C #1C8331
tetradic
#311C83 #831C3A #6E831C #1C8364
square
#311C83 #831C3A #6E831C #1C8364
split-complementary
#311C83 #83641C #3A831C
monochromatic
#0B061E #1E1151 #311C83 #4427B5 #6143D7

Accessibility & contrast

On white

12.93
#311C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#311C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C83
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C83#FFFFFF#000000##FFFFFF
##311C831.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311c83;
/* rgb */ color: rgb(49, 28, 131);
/* oklch */ color: oklch(33.2% 0.160 282.8);
Tailwind
colors: {
  custom: {
    50: '#745ba8',
    500: '#311c83',
    950: '#000000',
  },
}
SCSS
$custom: #311c83;
$custom-light: #745ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#311c83",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 252.233,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33229,
    "c": 0.15955,
    "h": 282.8
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#311C83
secondary
#9FB645
accent
#E840C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311C83

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

Preview Lab → · Contrast checker → · Palette generator →

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