#311A93#311A93

#311A93 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.181 H 280.1°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#311A93
RGBrgb(49, 26, 147)
HSLhsl(251, 70%, 34%)
HSVhsv(251, 82%, 58%)
CMYKcmyk(66.7%, 82.3%, 0%, 42.4%)
CIE-LABlab(21.94, 45.07, -61.64)
CIE-LCHlch(21.94, 76.36, 306.17°)
OKLaboklab(34.73% 0.0316 -0.1779)
OKLCHoklch(34.73% 0.181 280.1)
XYZxyz(6.9008, 3.4978, 27.9096)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A93 #7C931A
analogous
#1A4093 #311A93 #6E1A93
triadic
#311A93 #93311A #1A9331
tetradic
#311A93 #931A40 #7C931A #1A936E
square
#311A93 #931A40 #7C931A #1A936E
split-complementary
#311A93 #936E1A #40931A
monochromatic
#0E082B #20115F #311A93 #4223C7 #6549DF

Accessibility & contrast

On white

12.36
#311A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#311A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A93
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A93#FFFFFF#000000##FFFFFF
##311A931.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311a93;
/* rgb */ color: rgb(49, 26, 147);
/* oklch */ color: oklch(34.7% 0.181 280.1);
Tailwind
colors: {
  custom: {
    50: '#785bb4',
    500: '#311a93',
    950: '#000000',
  },
}
SCSS
$custom: #311a93;
$custom-light: #785bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#311a93",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 251.405,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34733,
    "c": 0.18072,
    "h": 280.1
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#311A93
secondary
#AAC048
accent
#ED3BCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311A93

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

Preview Lab → · Contrast checker → · Palette generator →

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