#331A95#331A95

#331A95 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.183 H 280.7°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#331A95
RGBrgb(51, 26, 149)
HSLhsl(252, 70%, 34%)
HSVhsv(252, 83%, 58%)
CMYKcmyk(65.8%, 82.6%, 0%, 41.6%)
CIE-LABlab(22.34, 45.87, -62.19)
CIE-LCHlch(22.34, 77.28, 306.41°)
OKLaboklab(35.13% 0.034 -0.1795)
OKLCHoklch(35.13% 0.183 280.7)
XYZxyz(7.1577, 3.6120, 28.7479)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A95 #7C951A
analogous
#1A3F95 #331A95 #711A95
triadic
#331A95 #95331A #1A9533
tetradic
#331A95 #951A3F #7C951A #1A9571
square
#331A95 #951A3F #7C951A #1A9571
split-complementary
#331A95 #95711A #3F951A
monochromatic
#0F082D #211161 #331A95 #4523C9 #684ADF

Accessibility & contrast

On white

12.19
#331A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#331A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A95
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A95#FFFFFF#000000##FFFFFF
##331A951.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #331a95;
/* rgb */ color: rgb(51, 26, 149);
/* oklch */ color: oklch(35.1% 0.183 280.7);
Tailwind
colors: {
  custom: {
    50: '#795cb5',
    500: '#331a95',
    950: '#000000',
  },
}
SCSS
$custom: #331a95;
$custom-light: #795cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#331a95",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 252.195,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35127,
    "c": 0.1827,
    "h": 280.7
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#331A95
secondary
#A9C14A
accent
#ED3BC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331A95

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

Preview Lab → · Contrast checker → · Palette generator →

#331A95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva