#311B92#311B92

#311B92 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.179 H 280.1°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#311B92
RGBrgb(49, 27, 146)
HSLhsl(251, 69%, 34%)
HSVhsv(251, 82%, 57%)
CMYKcmyk(66.4%, 81.5%, 0%, 42.7%)
CIE-LABlab(21.99, 44.29, -60.94)
CIE-LCHlch(21.99, 75.33, 306.01°)
OKLaboklab(34.73% 0.0314 -0.1759)
OKLCHoklch(34.73% 0.179 280.1)
XYZxyz(6.8452, 3.5116, 27.5056)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B92 #7C921B
analogous
#1B4192 #311B92 #6D1B92
triadic
#311B92 #92311B #1B9231
tetradic
#311B92 #921B41 #7C921B #1B926D
square
#311B92 #921B41 #7C921B #1B926D
split-complementary
#311B92 #926D1B #41921B
monochromatic
#0E082B #20115E #311B92 #4225C6 #654ADE

Accessibility & contrast

On white

12.34
#311B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#311B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B92
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B92#FFFFFF#000000##FFFFFF
##311B921.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311b92;
/* rgb */ color: rgb(49, 27, 146);
/* oklch */ color: oklch(34.7% 0.179 280.1);
Tailwind
colors: {
  custom: {
    50: '#785cb3',
    500: '#311b92',
    950: '#000000',
  },
}
SCSS
$custom: #311b92;
$custom-light: #785cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#311b92",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 251.092,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34734,
    "c": 0.17868,
    "h": 280.1
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#311B92
secondary
#AABF49
accent
#EC3CCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311B92

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

Preview Lab → · Contrast checker → · Palette generator →

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