#311886#311886

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

Color values

HEX#311886
RGBrgb(49, 24, 134)
HSLhsl(254, 70%, 31%)
HSVhsv(254, 82%, 53%)
CMYKcmyk(63.4%, 82.1%, 0%, 47.5%)
CIE-LABlab(20.15, 42.09, -56.47)
CIE-LCHlch(20.15, 70.43, 306.70°)
OKLaboklab(33.07% 0.0369 -0.1629)
OKLCHoklch(33.07% 0.167 282.8)
XYZxyz(5.8950, 3.0271, 22.8233)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311886 #6D8618
analogous
#183686 #311886 #681886
triadic
#311886 #863118 #188631
tetradic
#311886 #861836 #6D8618 #188668
square
#311886 #861836 #6D8618 #188668
split-complementary
#311886 #866818 #368618
monochromatic
#0B051E #1E0F52 #311886 #4421BA #613CDC

Accessibility & contrast

On white

13.08
#311886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#311886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311886
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311886#FFFFFF#000000##FFFFFF
##3118861.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311886;
/* rgb */ color: rgb(49, 24, 134);
/* oklch */ color: oklch(33.1% 0.167 282.8);
Tailwind
colors: {
  custom: {
    50: '#7559aa',
    500: '#311886',
    950: '#000000',
  },
}
SCSS
$custom: #311886;
$custom-light: #7559aa;
$custom-dark: #000000;
JSON
{
  "hex": "#311886",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 253.636,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33066,
    "c": 0.167,
    "h": 282.8
  },
  "luminance": 0.03027
}

Semantic roles & 50–950 ramp

primary
#311886
secondary
#9EBA40
accent
#EC3BC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311886

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

Preview Lab → · Contrast checker → · Palette generator →

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