#311A84#311A84

#311A84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.163 H 282.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#311A84
RGBrgb(49, 26, 132)
HSLhsl(253, 67%, 31%)
HSVhsv(253, 80%, 52%)
CMYKcmyk(62.9%, 80.3%, 0%, 48.2%)
CIE-LABlab(20.27, 40.50, -55.02)
CIE-LCHlch(20.27, 68.32, 306.36°)
OKLaboklab(33.08% 0.0363 -0.1587)
OKLCHoklch(33.08% 0.163 282.9)
XYZxyz(5.7996, 3.0573, 22.1098)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A84 #6D841A
analogous
#1A3884 #311A84 #661A84
triadic
#311A84 #84311A #1A8431
tetradic
#311A84 #841A38 #6D841A #1A8466
square
#311A84 #841A38 #6D841A #1A8466
split-complementary
#311A84 #84661A #38841A
monochromatic
#0B061E #1E1051 #311A84 #4424B7 #613FD9

Accessibility & contrast

On white

13.03
#311A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#311A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A84
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A84#FFFFFF#000000##FFFFFF
##311A841.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311a84;
/* rgb */ color: rgb(49, 26, 132);
/* oklch */ color: oklch(33.1% 0.163 282.9);
Tailwind
colors: {
  custom: {
    50: '#755aa9',
    500: '#311a84',
    950: '#000000',
  },
}
SCSS
$custom: #311a84;
$custom-light: #755aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#311a84",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 253.019,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33084,
    "c": 0.16274,
    "h": 282.9
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#311A84
secondary
#9EB842
accent
#EA3EC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311A84

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

Preview Lab → · Contrast checker → · Palette generator →

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