#311C92#311C92

#311C92 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.178 H 280.0°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#311C92
RGBrgb(49, 28, 146)
HSLhsl(251, 68%, 34%)
HSVhsv(251, 81%, 57%)
CMYKcmyk(66.4%, 80.8%, 0%, 42.7%)
CIE-LABlab(22.15, 43.81, -60.66)
CIE-LCHlch(22.15, 74.82, 305.84°)
OKLaboklab(34.85% 0.0308 -0.1751)
OKLCHoklch(34.85% 0.178 280)
XYZxyz(6.8685, 3.5582, 27.5134)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C92 #7D921C
analogous
#1C4292 #311C92 #6C1C92
triadic
#311C92 #92311C #1C9231
tetradic
#311C92 #921C42 #7D921C #1C926C
square
#311C92 #921C42 #7D921C #1C926C
split-complementary
#311C92 #926C1C #42921C
monochromatic
#0F082B #20125F #311C92 #4226C5 #664CDD

Accessibility & contrast

On white

12.27
#311C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#311C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C92
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C92#FFFFFF#000000##FFFFFF
##311C921.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311c92;
/* rgb */ color: rgb(49, 28, 146);
/* oklch */ color: oklch(34.9% 0.178 280.0);
Tailwind
colors: {
  custom: {
    50: '#785cb3',
    500: '#311c92',
    950: '#000000',
  },
}
SCSS
$custom: #311c92;
$custom-light: #785cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#311c92",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 146
  },
  "hsl": {
    "h": 250.678,
    "s": 67.816,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34851,
    "c": 0.17781,
    "h": 280
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311C92

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

Preview Lab → · Contrast checker → · Palette generator →

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