#311B99#311B99

#311B99 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.187 H 279.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#311B99
RGBrgb(49, 27, 153)
HSLhsl(250, 70%, 35%)
HSVhsv(250, 82%, 60%)
CMYKcmyk(68%, 82.4%, 0%, 40%)
CIE-LABlab(22.78, 46.41, -63.95)
CIE-LCHlch(22.78, 79.01, 305.97°)
OKLaboklab(35.52% 0.0292 -0.1847)
OKLCHoklch(35.52% 0.187 279)
XYZxyz(7.4065, 3.7361, 30.4616)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B99 #83991B
analogous
#1B4499 #311B99 #701B99
triadic
#311B99 #99311B #1B9931
tetradic
#311B99 #991B44 #83991B #1B9970
square
#311B99 #991B44 #83991B #1B9970
split-complementary
#311B99 #99701B #44991B
monochromatic
#100931 #201265 #311B99 #4224CD #684FE0

Accessibility & contrast

On white

12.02
#311B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#311B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B99
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B99#FFFFFF#000000##FFFFFF
##311B991.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311b99;
/* rgb */ color: rgb(49, 27, 153);
/* oklch */ color: oklch(35.5% 0.187 279.0);
Tailwind
colors: {
  custom: {
    50: '#795cb8',
    500: '#311b99',
    950: '#000000',
  },
}
SCSS
$custom: #311b99;
$custom-light: #795cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#311b99",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 250.476,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35517,
    "c": 0.18696,
    "h": 279
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

primary
#311B99
secondary
#AEC24E
accent
#ED3BCE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #311B99

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

Preview Lab → · Contrast checker → · Palette generator →

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