#331899#331899

#331899 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.189 H 280.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#331899
RGBrgb(51, 24, 153)
HSLhsl(253, 73%, 35%)
HSVhsv(253, 84%, 60%)
CMYKcmyk(66.7%, 84.3%, 0%, 40%)
CIE-LABlab(22.50, 47.93, -64.40)
CIE-LCHlch(22.50, 80.28, 306.66°)
OKLaboklab(35.37% 0.0336 -0.1859)
OKLCHoklch(35.37% 0.189 280.2)
XYZxyz(7.4398, 3.6564, 30.4445)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331899 #7E9918
analogous
#183E99 #331899 #731899
triadic
#331899 #993318 #189933
tetradic
#331899 #99183E #7E9918 #189973
square
#331899 #99183E #7E9918 #189973
split-complementary
#331899 #997318 #3E9918
monochromatic
#10072F #211064 #331899 #4520CE #6949E2

Accessibility & contrast

On white

12.13
#331899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#331899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331899
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331899#FFFFFF#000000##FFFFFF
##3318991.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #331899;
/* rgb */ color: rgb(51, 24, 153);
/* oklch */ color: oklch(35.4% 0.189 280.2);
Tailwind
colors: {
  custom: {
    50: '#7a5bb8',
    500: '#331899',
    950: '#000000',
  },
}
SCSS
$custom: #331899;
$custom-light: #7a5bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#331899",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 153
  },
  "hsl": {
    "h": 252.558,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35369,
    "c": 0.1889,
    "h": 280.2
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#331899
secondary
#AAC449
accent
#F038C9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #331899

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

Preview Lab → · Contrast checker → · Palette generator →

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