#311390#311390

#311390 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.7% C 0.183 H 281.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#311390
RGBrgb(49, 19, 144)
HSLhsl(254, 77%, 32%)
HSVhsv(254, 87%, 56%)
CMYKcmyk(66%, 86.8%, 0%, 43.5%)
CIE-LABlab(20.56, 47.20, -62.05)
CIE-LCHlch(20.56, 77.96, 307.26°)
OKLaboklab(33.69% 0.0358 -0.179)
OKLCHoklch(33.69% 0.183 281.3)
XYZxyz(6.5320, 3.1318, 26.6404)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311390 #729013
analogous
#133490 #311390 #701390
triadic
#311390 #903113 #139031
tetradic
#311390 #901334 #729013 #139070
square
#311390 #901334 #729013 #139070
split-complementary
#311390 #907013 #349013
monochromatic
#0C0524 #1F0C5A #311390 #431AC6 #6239E5

Accessibility & contrast

On white

12.91
#311390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#311390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311390
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311390#FFFFFF#000000##FFFFFF
##3113901.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311390;
/* rgb */ color: rgb(49, 19, 144);
/* oklch */ color: oklch(33.7% 0.183 281.3);
Tailwind
colors: {
  custom: {
    50: '#7858b2',
    500: '#311390',
    950: '#000000',
  },
}
SCSS
$custom: #311390;
$custom-light: #7858b2;
$custom-dark: #000000;
JSON
{
  "hex": "#311390",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 254.4,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33687,
    "c": 0.18258,
    "h": 281.3
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#311390
secondary
#A3C43B
accent
#F335C5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311390

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

Preview Lab → · Contrast checker → · Palette generator →

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