#331992#331992

#331992 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.180 H 281.4°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#331992
RGBrgb(51, 25, 146)
HSLhsl(253, 71%, 34%)
HSVhsv(253, 83%, 57%)
CMYKcmyk(65.1%, 82.9%, 0%, 42.7%)
CIE-LABlab(21.85, 45.43, -61.16)
CIE-LCHlch(21.85, 76.18, 306.61°)
OKLaboklab(34.69% 0.0355 -0.1765)
OKLCHoklch(34.69% 0.18 281.4)
XYZxyz(6.8995, 3.4739, 27.4955)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331992 #789219
analogous
#193B92 #331992 #6F1992
triadic
#331992 #923319 #199233
tetradic
#331992 #92193B #789219 #19926F
square
#331992 #92193B #789219 #19926F
split-complementary
#331992 #926F19 #3B9219
monochromatic
#0E0729 #21105E #331992 #4522C6 #6746DF

Accessibility & contrast

On white

12.39
#331992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#331992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331992
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331992#FFFFFF#000000##FFFFFF
##3319921.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003895
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #331992;
/* rgb */ color: rgb(51, 25, 146);
/* oklch */ color: oklch(34.7% 0.180 281.4);
Tailwind
colors: {
  custom: {
    50: '#795bb3',
    500: '#331992',
    950: '#000000',
  },
}
SCSS
$custom: #331992;
$custom-light: #795bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#331992",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 146
  },
  "hsl": {
    "h": 252.893,
    "s": 70.76,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34685,
    "c": 0.18001,
    "h": 281.4
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#331992
secondary
#A6C146
accent
#EE3AC7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331992

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

Preview Lab → · Contrast checker → · Palette generator →

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