#311989#311989

#311989 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.170 H 282.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#311989
RGBrgb(49, 25, 137)
HSLhsl(253, 69%, 32%)
HSVhsv(253, 82%, 54%)
CMYKcmyk(64.2%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.65, 42.52, -57.54)
CIE-LCHlch(20.65, 71.54, 306.46°)
OKLaboklab(33.51% 0.0353 -0.166)
OKLCHoklch(33.51% 0.17 282)
XYZxyz(6.1282, 3.1539, 23.9479)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311989 #718919
analogous
#193989 #311989 #691989
triadic
#311989 #893119 #198931
tetradic
#311989 #891939 #718919 #198969
square
#311989 #891939 #718919 #198969
split-complementary
#311989 #896919 #398919
monochromatic
#0C0621 #1E1055 #311989 #4422BD #6240DC

Accessibility & contrast

On white

12.88
#311989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#311989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311989
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311989#FFFFFF#000000##FFFFFF
##3119891.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311989;
/* rgb */ color: rgb(49, 25, 137);
/* oklch */ color: oklch(33.5% 0.170 282.0);
Tailwind
colors: {
  custom: {
    50: '#765aad',
    500: '#311989',
    950: '#000000',
  },
}
SCSS
$custom: #311989;
$custom-light: #765aad;
$custom-dark: #000000;
JSON
{
  "hex": "#311989",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 252.857,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.16969,
    "h": 282
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#311989
secondary
#A2BC41
accent
#EC3CC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311989

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

Preview Lab → · Contrast checker → · Palette generator →

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