#331689#331689

#331689 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.172 H 283.5°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#331689
RGBrgb(51, 22, 137)
HSLhsl(255, 72%, 31%)
HSVhsv(255, 84%, 54%)
CMYKcmyk(62.8%, 83.9%, 0%, 46.3%)
CIE-LABlab(20.37, 44.12, -57.98)
CIE-LCHlch(20.37, 72.86, 307.27°)
OKLaboklab(33.37% 0.0402 -0.1672)
OKLCHoklch(33.37% 0.172 283.5)
XYZxyz(6.1661, 3.0833, 23.9323)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331689 #6C8916
analogous
#163389 #331689 #6C1689
triadic
#331689 #893316 #168933
tetradic
#331689 #891633 #6C8916 #16896C
square
#331689 #891633 #6C8916 #16896C
split-complementary
#331689 #896C16 #338916
monochromatic
#0C0520 #1F0E54 #331689 #471EBE #643ADF

Accessibility & contrast

On white

12.99
#331689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#331689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331689
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331689#FFFFFF#000000##FFFFFF
##3316891.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #331689;
/* rgb */ color: rgb(51, 22, 137);
/* oklch */ color: oklch(33.4% 0.172 283.5);
Tailwind
colors: {
  custom: {
    50: '#7759ad',
    500: '#331689',
    950: '#000000',
  },
}
SCSS
$custom: #331689;
$custom-light: #7759ad;
$custom-dark: #000000;
JSON
{
  "hex": "#331689",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 255.13,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33368,
    "c": 0.17195,
    "h": 283.5
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#331689
secondary
#9DBD3E
accent
#EF39C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331689

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

Preview Lab → · Contrast checker → · Palette generator →

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