#311589#311589

#311589 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.173 H 282.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#311589
RGBrgb(49, 21, 137)
HSLhsl(254, 73%, 31%)
HSVhsv(254, 85%, 54%)
CMYKcmyk(64.2%, 84.7%, 0%, 46.3%)
CIE-LABlab(20.02, 44.35, -58.57)
CIE-LCHlch(20.02, 73.47, 307.13°)
OKLaboklab(33.08% 0.0375 -0.1689)
OKLCHoklch(33.08% 0.173 282.5)
XYZxyz(6.0487, 2.9950, 23.9214)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311589 #6D8915
analogous
#153389 #311589 #6B1589
triadic
#311589 #893115 #158931
tetradic
#311589 #891533 #6D8915 #15896B
square
#311589 #891533 #6D8915 #15896B
split-complementary
#311589 #896B15 #338915
monochromatic
#0B051F #1E0D54 #311589 #441DBE #6138E0

Accessibility & contrast

On white

13.13
#311589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#311589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311589
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311589#FFFFFF#000000##FFFFFF
##3115891.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003951
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311589;
/* rgb */ color: rgb(49, 21, 137);
/* oklch */ color: oklch(33.1% 0.173 282.5);
Tailwind
colors: {
  custom: {
    50: '#7658ad',
    500: '#311589',
    950: '#000000',
  },
}
SCSS
$custom: #311589;
$custom-light: #7658ad;
$custom-dark: #000000;
JSON
{
  "hex": "#311589",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 254.483,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33077,
    "c": 0.17305,
    "h": 282.5
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#311589
secondary
#9EBD3D
accent
#F038C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311589

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

Preview Lab → · Contrast checker → · Palette generator →

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