#311690#311690

#311690 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 34.0% C 0.180 H 281.0°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#311690
RGBrgb(49, 22, 144)
HSLhsl(253, 73%, 33%)
HSVhsv(253, 85%, 56%)
CMYKcmyk(66%, 84.7%, 0%, 43.5%)
CIE-LABlab(20.98, 45.97, -61.36)
CIE-LCHlch(20.98, 76.67, 306.84°)
OKLaboklab(33.97% 0.0345 -0.1771)
OKLCHoklch(33.97% 0.18 281)
XYZxyz(6.5860, 3.2399, 26.6584)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311690 #759016
analogous
#163890 #311690 #6E1690
triadic
#311690 #903116 #169031
tetradic
#311690 #901638 #759016 #16906E
square
#311690 #901638 #759016 #16906E
split-complementary
#311690 #906E16 #389016
monochromatic
#0D0626 #1F0E5B #311690 #431EC5 #633FE2

Accessibility & contrast

On white

12.74
#311690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#311690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311690
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311690#FFFFFF#000000##FFFFFF
##3116901.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311690;
/* rgb */ color: rgb(49, 22, 144);
/* oklch */ color: oklch(34.0% 0.180 281.0);
Tailwind
colors: {
  custom: {
    50: '#7859b2',
    500: '#311690',
    950: '#000000',
  },
}
SCSS
$custom: #311690;
$custom-light: #7859b2;
$custom-dark: #000000;
JSON
{
  "hex": "#311690",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 144
  },
  "hsl": {
    "h": 253.279,
    "s": 73.494,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33972,
    "c": 0.1804,
    "h": 281
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#311690
secondary
#A5C240
accent
#F038C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311690

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

Preview Lab → · Contrast checker → · Palette generator →

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