#311A89#311A89

#311A89 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.169 H 281.9°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#311A89
RGBrgb(49, 26, 137)
HSLhsl(252, 68%, 32%)
HSVhsv(252, 81%, 54%)
CMYKcmyk(64.2%, 81%, 0%, 46.3%)
CIE-LABlab(20.82, 42.03, -57.26)
CIE-LCHlch(20.82, 71.03, 306.28°)
OKLaboklab(33.63% 0.0347 -0.1652)
OKLCHoklch(33.63% 0.169 281.9)
XYZxyz(6.1500, 3.1974, 23.9551)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A89 #72891A
analogous
#1A3B89 #311A89 #681A89
triadic
#311A89 #89311A #1A8931
tetradic
#311A89 #891A3B #72891A #1A8968
square
#311A89 #891A3B #72891A #1A8968
split-complementary
#311A89 #89681A #3B891A
monochromatic
#0C0622 #1F1056 #311A89 #4324BC #6242DB

Accessibility & contrast

On white

12.81
#311A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#311A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A89
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A89#FFFFFF#000000##FFFFFF
##311A891.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #311a89;
/* rgb */ color: rgb(49, 26, 137);
/* oklch */ color: oklch(33.6% 0.169 281.9);
Tailwind
colors: {
  custom: {
    50: '#765bad',
    500: '#311a89',
    950: '#000000',
  },
}
SCSS
$custom: #311a89;
$custom-light: #765bad;
$custom-dark: #000000;
JSON
{
  "hex": "#311a89",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 252.432,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33627,
    "c": 0.1688,
    "h": 281.9
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#311A89
secondary
#A3BC43
accent
#EB3DC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311A89

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

Preview Lab → · Contrast checker → · Palette generator →

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