#311A82#311A82

#311A82 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.160 H 283.3°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#311A82
RGBrgb(49, 26, 130)
HSLhsl(253, 67%, 31%)
HSVhsv(253, 80%, 51%)
CMYKcmyk(62.3%, 80%, 0%, 49%)
CIE-LABlab(20.06, 39.88, -54.11)
CIE-LCHlch(20.06, 67.22, 306.39°)
OKLaboklab(32.87% 0.0369 -0.156)
OKLCHoklch(32.87% 0.16 283.3)
XYZxyz(5.6640, 3.0031, 21.3959)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A82 #6B821A
analogous
#1A3782 #311A82 #651A82
triadic
#311A82 #82311A #1A8231
tetradic
#311A82 #821A37 #6B821A #1A8265
square
#311A82 #821A37 #6B821A #1A8265
split-complementary
#311A82 #82651A #37821A
monochromatic
#0B061C #1E104F #311A82 #4424B5 #603ED8

Accessibility & contrast

On white

13.12
#311A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#311A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A82
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A82#FFFFFF#000000##FFFFFF
##311A821.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311a82;
/* rgb */ color: rgb(49, 26, 130);
/* oklch */ color: oklch(32.9% 0.160 283.3);
Tailwind
colors: {
  custom: {
    50: '#745aa7',
    500: '#311a82',
    950: '#000000',
  },
}
SCSS
$custom: #311a82;
$custom-light: #745aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#311a82",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 253.269,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32869,
    "c": 0.1603,
    "h": 283.3
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#311A82
secondary
#9CB642
accent
#EA3EC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311A82

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

Preview Lab → · Contrast checker → · Palette generator →

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