#331999#331999

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

Color values

HEX#331999
RGBrgb(51, 25, 153)
HSLhsl(252, 72%, 35%)
HSVhsv(252, 84%, 60%)
CMYKcmyk(66.7%, 83.7%, 0%, 40%)
CIE-LABlab(22.65, 47.50, -64.16)
CIE-LCHlch(22.65, 79.83, 306.51°)
OKLaboklab(35.47% 0.0332 -0.1852)
OKLCHoklch(35.47% 0.188 280.2)
XYZxyz(7.4608, 3.6984, 30.4515)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331999 #7F9919
analogous
#193F99 #331999 #731999
triadic
#331999 #993319 #199933
tetradic
#331999 #99193F #7F9919 #199973
square
#331999 #99193F #7F9919 #199973
split-complementary
#331999 #997319 #3F9919
monochromatic
#100830 #211064 #331999 #4522CE #694BE2

Accessibility & contrast

On white

12.07
#331999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#331999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331999
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331999#FFFFFF#000000##FFFFFF
##3319991.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331999;
/* rgb */ color: rgb(51, 25, 153);
/* oklch */ color: oklch(35.5% 0.188 280.2);
Tailwind
colors: {
  custom: {
    50: '#7a5bb8',
    500: '#331999',
    950: '#000000',
  },
}
SCSS
$custom: #331999;
$custom-light: #7a5bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#331999",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 153
  },
  "hsl": {
    "h": 252.188,
    "s": 71.91,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3547,
    "c": 0.18815,
    "h": 280.2
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#331999
secondary
#ABC34A
accent
#EF39CA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #331999

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

Preview Lab → · Contrast checker → · Palette generator →

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