#311990#311990

#311990 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.178 H 280.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#311990
RGBrgb(49, 25, 144)
HSLhsl(252, 70%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(66%, 82.6%, 0%, 43.5%)
CIE-LABlab(21.44, 44.63, -60.60)
CIE-LCHlch(21.44, 75.27, 306.37°)
OKLaboklab(34.29% 0.033 -0.1749)
OKLCHoklch(34.29% 0.178 280.7)
XYZxyz(6.6467, 3.3613, 26.6787)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311990 #789019
analogous
#193C90 #311990 #6C1990
triadic
#311990 #903119 #199031
tetradic
#311990 #90193C #789019 #19906C
square
#311990 #90193C #789019 #19906C
split-complementary
#311990 #906C19 #3C9019
monochromatic
#0E0728 #1F105C #311990 #4322C4 #6445DF

Accessibility & contrast

On white

12.56
#311990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#311990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311990
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311990#FFFFFF#000000##FFFFFF
##3119901.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #311990;
/* rgb */ color: rgb(49, 25, 144);
/* oklch */ color: oklch(34.3% 0.178 280.7);
Tailwind
colors: {
  custom: {
    50: '#775ab2',
    500: '#311990',
    950: '#000000',
  },
}
SCSS
$custom: #311990;
$custom-light: #775ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#311990",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 252.101,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34287,
    "c": 0.17801,
    "h": 280.7
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#311990
secondary
#A7C045
accent
#ED3BC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311990

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

Preview Lab → · Contrast checker → · Palette generator →

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