#331995#331995

#331995 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.184 H 280.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#331995
RGBrgb(51, 25, 149)
HSLhsl(253, 71%, 34%)
HSVhsv(253, 83%, 58%)
CMYKcmyk(65.8%, 83.2%, 0%, 41.6%)
CIE-LABlab(22.19, 46.32, -62.45)
CIE-LCHlch(22.19, 77.75, 306.56°)
OKLaboklab(35.02% 0.0345 -0.1802)
OKLCHoklch(35.02% 0.184 280.8)
XYZxyz(7.1360, 3.5684, 28.7407)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331995 #7B9519
analogous
#193D95 #331995 #711995
triadic
#331995 #953319 #199533
tetradic
#331995 #95193D #7B9519 #199571
square
#331995 #95193D #7B9519 #199571
split-complementary
#331995 #957119 #3D9519
monochromatic
#0F072C #211061 #331995 #4522C9 #6848E0

Accessibility & contrast

On white

12.25
#331995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#331995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331995
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331995#FFFFFF#000000##FFFFFF
##3319951.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #331995;
/* rgb */ color: rgb(51, 25, 149);
/* oklch */ color: oklch(35.0% 0.184 280.8);
Tailwind
colors: {
  custom: {
    50: '#795bb5',
    500: '#331995',
    950: '#000000',
  },
}
SCSS
$custom: #331995;
$custom-light: #795bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#331995",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 149
  },
  "hsl": {
    "h": 252.581,
    "s": 71.264,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3502,
    "c": 0.18351,
    "h": 280.8
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#331995
secondary
#A8C248
accent
#EE3AC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331995

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

Preview Lab → · Contrast checker → · Palette generator →

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