#311A91#311A91

#311A91 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.178 H 280.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#311A91
RGBrgb(49, 26, 145)
HSLhsl(252, 70%, 34%)
HSVhsv(252, 82%, 57%)
CMYKcmyk(66.2%, 82.1%, 0%, 43.1%)
CIE-LABlab(21.71, 44.46, -60.77)
CIE-LCHlch(21.71, 75.30, 306.19°)
OKLaboklab(34.51% 0.0322 -0.1754)
OKLCHoklch(34.51% 0.178 280.4)
XYZxyz(6.7452, 3.4356, 27.0902)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A91 #7A911A
analogous
#1A3E91 #311A91 #6C1A91
triadic
#311A91 #91311A #1A9131
tetradic
#311A91 #911A3E #7A911A #1A916C
square
#311A91 #911A3E #7A911A #1A916C
split-complementary
#311A91 #916C1A #3E911A
monochromatic
#0E0729 #1F115D #311A91 #4323C5 #6447DE

Accessibility & contrast

On white

12.45
#311A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#311A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A91
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A91#FFFFFF#000000##FFFFFF
##311A911.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002F8F
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311a91;
/* rgb */ color: rgb(49, 26, 145);
/* oklch */ color: oklch(34.5% 0.178 280.4);
Tailwind
colors: {
  custom: {
    50: '#775bb2',
    500: '#311a91',
    950: '#000000',
  },
}
SCSS
$custom: #311a91;
$custom-light: #775bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#311a91",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 251.597,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3451,
    "c": 0.17835,
    "h": 280.4
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#311A91
secondary
#A8C047
accent
#EC3BCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311A91

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

Preview Lab → · Contrast checker → · Palette generator →

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