#311489#311489

#311489 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.174 H 282.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#311489
RGBrgb(49, 20, 137)
HSLhsl(255, 75%, 31%)
HSVhsv(255, 85%, 54%)
CMYKcmyk(64.2%, 85.4%, 0%, 46.3%)
CIE-LABlab(19.88, 44.77, -58.81)
CIE-LCHlch(19.88, 73.92, 307.28°)
OKLaboklab(32.98% 0.038 -0.1696)
OKLCHoklch(32.98% 0.174 282.6)
XYZxyz(6.0307, 2.9590, 23.9154)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311489 #6C8914
analogous
#143189 #311489 #6B1489
triadic
#311489 #893114 #148931
tetradic
#311489 #891431 #6C8914 #14896B
square
#311489 #891431 #6C8914 #14896B
split-complementary
#311489 #896B14 #318914
monochromatic
#0B041E #1E0C54 #311489 #441CBE #6036E2

Accessibility & contrast

On white

13.19
#311489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#311489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311489
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311489#FFFFFF#000000##FFFFFF
##3114891.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311489;
/* rgb */ color: rgb(49, 20, 137);
/* oklch */ color: oklch(33.0% 0.174 282.6);
Tailwind
colors: {
  custom: {
    50: '#7658ad',
    500: '#311489',
    950: '#000000',
  },
}
SCSS
$custom: #311489;
$custom-light: #7658ad;
$custom-dark: #000000;
JSON
{
  "hex": "#311489",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 254.872,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32978,
    "c": 0.17383,
    "h": 282.6
  },
  "luminance": 0.02959
}

Semantic roles & 50–950 ramp

primary
#311489
secondary
#9DBD3C
accent
#F137C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #311489

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

Preview Lab → · Contrast checker → · Palette generator →

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