#311B93#311B93

#311B93 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.180 H 279.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#311B93
RGBrgb(49, 27, 147)
HSLhsl(251, 69%, 34%)
HSVhsv(251, 82%, 58%)
CMYKcmyk(66.7%, 81.6%, 0%, 42.4%)
CIE-LABlab(22.10, 44.60, -61.37)
CIE-LCHlch(22.10, 75.86, 306.00°)
OKLaboklab(34.85% 0.0311 -0.1772)
OKLCHoklch(34.85% 0.18 279.9)
XYZxyz(6.9233, 3.5429, 27.9171)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B93 #7D931B
analogous
#1B4193 #311B93 #6D1B93
triadic
#311B93 #93311B #1B9331
tetradic
#311B93 #931B41 #7D931B #1B936D
square
#311B93 #931B41 #7D931B #1B936D
split-complementary
#311B93 #936D1B #41931B
monochromatic
#0F082C #20125F #311B93 #4224C7 #664BDE

Accessibility & contrast

On white

12.29
#311B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311B93
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B93#FFFFFF#000000##FFFFFF
##311B931.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311b93;
/* rgb */ color: rgb(49, 27, 147);
/* oklch */ color: oklch(34.8% 0.180 279.9);
Tailwind
colors: {
  custom: {
    50: '#785cb4',
    500: '#311b93',
    950: '#000000',
  },
}
SCSS
$custom: #311b93;
$custom-light: #785cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#311b93",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 251,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.17988,
    "h": 279.9
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#311B93
secondary
#AAC04A
accent
#EC3CCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311B93

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

Preview Lab → · Contrast checker → · Palette generator →

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