#331890#331890

#331890 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.178 H 281.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#331890
RGBrgb(51, 24, 144)
HSLhsl(254, 71%, 33%)
HSVhsv(254, 83%, 56%)
CMYKcmyk(64.6%, 83.3%, 0%, 43.5%)
CIE-LABlab(21.47, 45.29, -60.54)
CIE-LCHlch(21.47, 75.61, 306.80°)
OKLaboklab(34.36% 0.0367 -0.1747)
OKLCHoklch(34.36% 0.178 281.9)
XYZxyz(6.7243, 3.3702, 26.6763)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331890 #759018
analogous
#183990 #331890 #6F1890
triadic
#331890 #903318 #189033
tetradic
#331890 #901839 #759018 #18906F
square
#331890 #901839 #759018 #18906F
split-complementary
#331890 #906F18 #399018
monochromatic
#0E0727 #200F5C #331890 #4621C4 #6643E0

Accessibility & contrast

On white

12.54
#331890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#331890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331890
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331890#FFFFFF#000000##FFFFFF
##3318901.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #331890;
/* rgb */ color: rgb(51, 24, 144);
/* oklch */ color: oklch(34.4% 0.178 281.9);
Tailwind
colors: {
  custom: {
    50: '#785ab2',
    500: '#331890',
    950: '#000000',
  },
}
SCSS
$custom: #331890;
$custom-light: #785ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#331890",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 144
  },
  "hsl": {
    "h": 253.5,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34356,
    "c": 0.17848,
    "h": 281.9
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#331890
secondary
#A4C043
accent
#EE3AC6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331890

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

Preview Lab → · Contrast checker → · Palette generator →

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