#311F89#311F89

#311F89 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.164 H 281.1°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#311F89
RGBrgb(49, 31, 137)
HSLhsl(250, 63%, 33%)
HSVhsv(250, 77%, 54%)
CMYKcmyk(64.2%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.72, 39.44, -55.77)
CIE-LCHlch(21.72, 68.31, 305.27°)
OKLaboklab(34.26% 0.0315 -0.1609)
OKLCHoklch(34.26% 0.164 281.1)
XYZxyz(6.2705, 3.4386, 23.9953)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F89 #77891F
analogous
#1F4289 #311F89 #661F89
triadic
#311F89 #89311F #1F8931
tetradic
#311F89 #891F42 #77891F #1F8966
square
#311F89 #891F42 #77891F #1F8966
split-complementary
#311F89 #89661F #42891F
monochromatic
#0D0825 #1F1457 #311F89 #432ABB #634CD6

Accessibility & contrast

On white

12.44
#311F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311F89
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F89#FFFFFF#000000##FFFFFF
##311F891.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311f89;
/* rgb */ color: rgb(49, 31, 137);
/* oklch */ color: oklch(34.3% 0.164 281.1);
Tailwind
colors: {
  custom: {
    50: '#755dad',
    500: '#311f89',
    950: '#000000',
  },
}
SCSS
$custom: #311f89;
$custom-light: #755dad;
$custom-dark: #000000;
JSON
{
  "hex": "#311f89",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 250.189,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34258,
    "c": 0.16396,
    "h": 281.1
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#311F89
secondary
#A6B94B
accent
#E642CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311F89

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

Preview Lab → · Contrast checker → · Palette generator →

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