#331889#331889

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

Color values

HEX#331889
RGBrgb(51, 24, 137)
HSLhsl(254, 70%, 32%)
HSVhsv(254, 82%, 54%)
CMYKcmyk(62.8%, 82.5%, 0%, 46.3%)
CIE-LABlab(20.68, 43.21, -57.47)
CIE-LCHlch(20.68, 71.91, 306.94°)
OKLaboklab(33.58% 0.0391 -0.1657)
OKLCHoklch(33.58% 0.17 283.3)
XYZxyz(6.2058, 3.1628, 23.9455)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331889 #6E8918
analogous
#183689 #331889 #6C1889
triadic
#331889 #893318 #188933
tetradic
#331889 #891836 #6E8918 #18896C
square
#331889 #891836 #6E8918 #18896C
split-complementary
#331889 #896C18 #368918
monochromatic
#0C0621 #200F55 #331889 #4621BD #643EDD

Accessibility & contrast

On white

12.86
#331889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331889
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331889#FFFFFF#000000##FFFFFF
##3318891.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331889;
/* rgb */ color: rgb(51, 24, 137);
/* oklch */ color: oklch(33.6% 0.170 283.3);
Tailwind
colors: {
  custom: {
    50: '#775aad',
    500: '#331889',
    950: '#000000',
  },
}
SCSS
$custom: #331889;
$custom-light: #775aad;
$custom-dark: #000000;
JSON
{
  "hex": "#331889",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 254.336,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33582,
    "c": 0.17027,
    "h": 283.3
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#331889
secondary
#9FBD40
accent
#ED3BC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331889

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

Preview Lab → · Contrast checker → · Palette generator →

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