#311785#311785

#311785 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.167 H 283.1°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#311785
RGBrgb(49, 23, 133)
HSLhsl(254, 71%, 31%)
HSVhsv(254, 83%, 52%)
CMYKcmyk(63.2%, 82.7%, 0%, 47.8%)
CIE-LABlab(19.88, 42.26, -56.30)
CIE-LCHlch(19.88, 70.39, 306.90°)
OKLaboklab(32.84% 0.0378 -0.1623)
OKLCHoklch(32.84% 0.167 283.1)
XYZxyz(5.8053, 2.9588, 22.4509)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311785 #6B8517
analogous
#173485 #311785 #681785
triadic
#311785 #853117 #178531
tetradic
#311785 #851734 #6B8517 #178568
square
#311785 #851734 #6B8517 #178568
split-complementary
#311785 #856817 #348517
monochromatic
#0B051D #1E0E51 #311785 #4420B9 #603ADD

Accessibility & contrast

On white

13.19
#311785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#311785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311785
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311785#FFFFFF#000000##FFFFFF
##3117851.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#00384F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311785;
/* rgb */ color: rgb(49, 23, 133);
/* oklch */ color: oklch(32.8% 0.167 283.1);
Tailwind
colors: {
  custom: {
    50: '#7559aa',
    500: '#311785',
    950: '#000000',
  },
}
SCSS
$custom: #311785;
$custom-light: #7559aa;
$custom-dark: #000000;
JSON
{
  "hex": "#311785",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 254.182,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32843,
    "c": 0.16669,
    "h": 283.1
  },
  "luminance": 0.02959
}

Semantic roles & 50–950 ramp

primary
#311785
secondary
#9CB93F
accent
#ED3BC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311785

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

Preview Lab → · Contrast checker → · Palette generator →

#311785 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva