#311B90#311B90

#311B90 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.176 H 280.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#311B90
RGBrgb(49, 27, 144)
HSLhsl(251, 68%, 34%)
HSVhsv(251, 81%, 56%)
CMYKcmyk(66%, 81.3%, 0%, 43.5%)
CIE-LABlab(21.76, 43.68, -60.07)
CIE-LCHlch(21.76, 74.27, 306.03°)
OKLaboklab(34.51% 0.032 -0.1734)
OKLCHoklch(34.51% 0.176 280.5)
XYZxyz(6.6910, 3.4499, 26.6935)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B90 #7A901B
analogous
#1B3F90 #311B90 #6B1B90
triadic
#311B90 #90311B #1B9031
tetradic
#311B90 #901B3F #7A901B #1B906B
square
#311B90 #901B3F #7A901B #1B906B
split-complementary
#311B90 #906B1B #3F901B
monochromatic
#0E0829 #1F115C #311B90 #4325C4 #6449DD

Accessibility & contrast

On white

12.43
#311B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#311B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B90
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B90#FFFFFF#000000##FFFFFF
##311B901.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311b90;
/* rgb */ color: rgb(49, 27, 144);
/* oklch */ color: oklch(34.5% 0.176 280.5);
Tailwind
colors: {
  custom: {
    50: '#775cb2',
    500: '#311b90',
    950: '#000000',
  },
}
SCSS
$custom: #311b90;
$custom-light: #775cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#311b90",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 251.282,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34513,
    "c": 0.1763,
    "h": 280.5
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#311B90
secondary
#A8BF48
accent
#EB3DCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311B90

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

Preview Lab → · Contrast checker → · Palette generator →

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