#311490#311490

#311490 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.182 H 281.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#311490
RGBrgb(49, 20, 144)
HSLhsl(254, 76%, 32%)
HSVhsv(254, 86%, 56%)
CMYKcmyk(66%, 86.1%, 0%, 43.5%)
CIE-LABlab(20.70, 46.80, -61.83)
CIE-LCHlch(20.70, 77.54, 307.13°)
OKLaboklab(33.78% 0.0354 -0.1784)
OKLCHoklch(33.78% 0.182 281.2)
XYZxyz(6.5492, 3.1664, 26.6462)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311490 #739014
analogous
#143590 #311490 #6F1490
triadic
#311490 #903114 #149031
tetradic
#311490 #901435 #739014 #14906F
square
#311490 #901435 #739014 #14906F
split-complementary
#311490 #906F14 #359014
monochromatic
#0C0525 #1F0D5A #311490 #431BC6 #623BE4

Accessibility & contrast

On white

12.86
#311490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311490
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311490#FFFFFF#000000##FFFFFF
##3114901.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.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: #311490;
/* rgb */ color: rgb(49, 20, 144);
/* oklch */ color: oklch(33.8% 0.182 281.2);
Tailwind
colors: {
  custom: {
    50: '#7858b2',
    500: '#311490',
    950: '#000000',
  },
}
SCSS
$custom: #311490;
$custom-light: #7858b2;
$custom-dark: #000000;
JSON
{
  "hex": "#311490",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 144
  },
  "hsl": {
    "h": 254.032,
    "s": 75.61,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33779,
    "c": 0.18188,
    "h": 281.2
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#311490
secondary
#A4C33D
accent
#F236C6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311490

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

Preview Lab → · Contrast checker → · Palette generator →

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