#311686#311686

#311686 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.169 H 283.0°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#311686
RGBrgb(49, 22, 134)
HSLhsl(254, 72%, 31%)
HSVhsv(254, 84%, 53%)
CMYKcmyk(63.4%, 83.6%, 0%, 47.5%)
CIE-LABlab(19.83, 43.02, -57.00)
CIE-LCHlch(19.83, 71.41, 307.04°)
OKLaboklab(32.85% 0.038 -0.1644)
OKLCHoklch(32.85% 0.169 283)
XYZxyz(5.8553, 2.9476, 22.8100)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311686 #6B8616
analogous
#163386 #311686 #691686
triadic
#311686 #863116 #168631
tetradic
#311686 #861633 #6B8616 #168669
square
#311686 #861633 #6B8616 #168669
split-complementary
#311686 #866916 #338616
monochromatic
#0B051D #1E0D51 #311686 #441FBB #6038DE

Accessibility & contrast

On white

13.21
#311686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311686
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311686#FFFFFF#000000##FFFFFF
##3116861.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311686;
/* rgb */ color: rgb(49, 22, 134);
/* oklch */ color: oklch(32.8% 0.169 283.0);
Tailwind
colors: {
  custom: {
    50: '#7558aa',
    500: '#311686',
    950: '#000000',
  },
}
SCSS
$custom: #311686;
$custom-light: #7558aa;
$custom-dark: #000000;
JSON
{
  "hex": "#311686",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 254.464,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32845,
    "c": 0.16873,
    "h": 283
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

primary
#311686
secondary
#9CBA3E
accent
#EF39C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311686

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

Preview Lab → · Contrast checker → · Palette generator →

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