#311D90#311D90

#311D90 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.174 H 280.2°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#311D90
RGBrgb(49, 29, 144)
HSLhsl(250, 66%, 34%)
HSVhsv(250, 80%, 56%)
CMYKcmyk(66%, 79.9%, 0%, 43.5%)
CIE-LABlab(22.11, 42.69, -59.50)
CIE-LCHlch(22.11, 73.23, 305.66°)
OKLaboklab(34.75% 0.0309 -0.1718)
OKLCHoklch(34.75% 0.175 280.2)
XYZxyz(6.7384, 3.5448, 26.7093)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D90 #7C901D
analogous
#1D4390 #311D90 #6B1D90
triadic
#311D90 #90311D #1D9031
tetradic
#311D90 #901D43 #7C901D #1D906B
square
#311D90 #901D43 #7C901D #1D906B
split-complementary
#311D90 #906B1D #43901D
monochromatic
#0E082A #20135D #311D90 #4227C3 #654CDB

Accessibility & contrast

On white

12.29
#311D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#311D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D90
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D90#FFFFFF#000000##FFFFFF
##311D901.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311d90;
/* rgb */ color: rgb(49, 29, 144);
/* oklch */ color: oklch(34.8% 0.174 280.2);
Tailwind
colors: {
  custom: {
    50: '#775db2',
    500: '#311d90',
    950: '#000000',
  },
}
SCSS
$custom: #311d90;
$custom-light: #775db2;
$custom-dark: #000000;
JSON
{
  "hex": "#311d90",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 144
  },
  "hsl": {
    "h": 250.435,
    "s": 66.474,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34752,
    "c": 0.1745,
    "h": 280.2
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#311D90
secondary
#AABD4B
accent
#E93ECC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311D90

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

Preview Lab → · Contrast checker → · Palette generator →

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