#331989#331989

#331989 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.169 H 283.1°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#331989
RGBrgb(51, 25, 137)
HSLhsl(254, 69%, 32%)
HSVhsv(254, 82%, 54%)
CMYKcmyk(62.8%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.85, 42.74, -57.21)
CIE-LCHlch(20.85, 71.41, 306.77°)
OKLaboklab(33.69% 0.0385 -0.165)
OKLCHoklch(33.69% 0.169 283.1)
XYZxyz(6.2268, 3.2048, 23.9525)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331989 #6F8919
analogous
#193789 #331989 #6B1989
triadic
#331989 #893319 #198933
tetradic
#331989 #891937 #6F8919 #19896B
square
#331989 #891937 #6F8919 #19896B
split-complementary
#331989 #896B19 #378919
monochromatic
#0C0621 #201055 #331989 #4622BD #6440DC

Accessibility & contrast

On white

12.80
#331989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#331989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331989
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331989#FFFFFF#000000##FFFFFF
##3319891.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.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: #331989;
/* rgb */ color: rgb(51, 25, 137);
/* oklch */ color: oklch(33.7% 0.169 283.1);
Tailwind
colors: {
  custom: {
    50: '#775aad',
    500: '#331989',
    950: '#000000',
  },
}
SCSS
$custom: #331989;
$custom-light: #775aad;
$custom-dark: #000000;
JSON
{
  "hex": "#331989",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 253.929,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33694,
    "c": 0.16939,
    "h": 283.1
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#331989
secondary
#A0BC41
accent
#EC3CC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331989

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

Preview Lab → · Contrast checker → · Palette generator →

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