#311D93#311D93

#311D93 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.178 H 279.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#311D93
RGBrgb(49, 29, 147)
HSLhsl(250, 67%, 35%)
HSVhsv(250, 80%, 58%)
CMYKcmyk(66.7%, 80.3%, 0%, 42.4%)
CIE-LABlab(22.44, 43.62, -60.81)
CIE-LCHlch(22.44, 74.84, 305.65°)
OKLaboklab(35.08% 0.03 -0.1756)
OKLCHoklch(35.08% 0.178 279.7)
XYZxyz(6.9708, 3.6377, 27.9329)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D93 #7F931D
analogous
#1D4493 #311D93 #6C1D93
triadic
#311D93 #93311D #1D9331
tetradic
#311D93 #931D44 #7F931D #1D936C
square
#311D93 #931D44 #7F931D #1D936C
split-complementary
#311D93 #936C1D #44931D
monochromatic
#0F092D #201360 #311D93 #4227C6 #664EDC

Accessibility & contrast

On white

12.16
#311D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#311D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D93
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D93#FFFFFF#000000##FFFFFF
##311D931.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311d93;
/* rgb */ color: rgb(49, 29, 147);
/* oklch */ color: oklch(35.1% 0.178 279.7);
Tailwind
colors: {
  custom: {
    50: '#785db4',
    500: '#311d93',
    950: '#000000',
  },
}
SCSS
$custom: #311d93;
$custom-light: #785db4;
$custom-dark: #000000;
JSON
{
  "hex": "#311d93",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 250.169,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35079,
    "c": 0.17812,
    "h": 279.7
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#311D93
secondary
#ABBF4D
accent
#EA3ECD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311D93

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

Preview Lab → · Contrast checker → · Palette generator →

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