#311C90#311C90

#311C90 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.175 H 280.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#311C90
RGBrgb(49, 28, 144)
HSLhsl(251, 67%, 34%)
HSVhsv(251, 81%, 56%)
CMYKcmyk(66%, 80.6%, 0%, 43.5%)
CIE-LABlab(21.93, 43.19, -59.79)
CIE-LCHlch(21.93, 73.76, 305.85°)
OKLaboklab(34.63% 0.0314 -0.1726)
OKLCHoklch(34.63% 0.175 280.3)
XYZxyz(6.7143, 3.4966, 26.7012)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C90 #7B901C
analogous
#1C4190 #311C90 #6B1C90
triadic
#311C90 #90311C #1C9031
tetradic
#311C90 #901C41 #7B901C #1C906B
square
#311C90 #901C41 #7B901C #1C906B
split-complementary
#311C90 #906B1C #41901C
monochromatic
#0E082A #20125D #311C90 #4226C3 #654ADC

Accessibility & contrast

On white

12.36
#311C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#311C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C90
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C90#FFFFFF#000000##FFFFFF
##311C901.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.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: #311c90;
/* rgb */ color: rgb(49, 28, 144);
/* oklch */ color: oklch(34.6% 0.175 280.3);
Tailwind
colors: {
  custom: {
    50: '#775cb2',
    500: '#311c90',
    950: '#000000',
  },
}
SCSS
$custom: #311c90;
$custom-light: #775cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#311c90",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 250.862,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34631,
    "c": 0.17542,
    "h": 280.3
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#311C90
secondary
#A9BE4A
accent
#EA3DCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311C90

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

Preview Lab → · Contrast checker → · Palette generator →

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