#311A90#311A90

#311A90 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.177 H 280.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#311A90
RGBrgb(49, 26, 144)
HSLhsl(252, 69%, 33%)
HSVhsv(252, 82%, 56%)
CMYKcmyk(66%, 81.9%, 0%, 43.5%)
CIE-LABlab(21.60, 44.16, -60.34)
CIE-LCHlch(21.60, 74.77, 306.20°)
OKLaboklab(34.4% 0.0325 -0.1742)
OKLCHoklch(34.4% 0.177 280.6)
XYZxyz(6.6685, 3.4049, 26.6859)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A90 #79901A
analogous
#1A3E90 #311A90 #6C1A90
triadic
#311A90 #90311A #1A9031
tetradic
#311A90 #901A3E #79901A #1A906C
square
#311A90 #901A3E #79901A #1A906C
split-complementary
#311A90 #906C1A #3E901A
monochromatic
#0E0728 #1F115C #311A90 #4323C4 #6447DE

Accessibility & contrast

On white

12.49
#311A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#311A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A90
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A90#FFFFFF#000000##FFFFFF
##311A901.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311a90;
/* rgb */ color: rgb(49, 26, 144);
/* oklch */ color: oklch(34.4% 0.177 280.6);
Tailwind
colors: {
  custom: {
    50: '#775bb2',
    500: '#311a90',
    950: '#000000',
  },
}
SCSS
$custom: #311a90;
$custom-light: #775bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#311a90",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 251.695,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34398,
    "c": 0.17717,
    "h": 280.6
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

primary
#311A90
secondary
#A8BF47
accent
#EC3CCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311A90

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

Preview Lab → · Contrast checker → · Palette generator →

#311A90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva