#331994#331994

#331994 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.182 H 281.0°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#331994
RGBrgb(51, 25, 148)
HSLhsl(253, 71%, 34%)
HSVhsv(253, 83%, 58%)
CMYKcmyk(65.5%, 83.1%, 0%, 42%)
CIE-LABlab(22.08, 46.02, -62.02)
CIE-LCHlch(22.08, 77.23, 306.58°)
OKLaboklab(34.91% 0.0348 -0.179)
OKLCHoklch(34.91% 0.182 281)
XYZxyz(7.0565, 3.5366, 28.3220)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331994 #7A9419
analogous
#193D94 #331994 #711994
triadic
#331994 #943319 #199433
tetradic
#331994 #94193D #7A9419 #199471
square
#331994 #94193D #7A9419 #199471
split-complementary
#331994 #947119 #3D9419
monochromatic
#0F072B #211060 #331994 #4522C8 #6847E0

Accessibility & contrast

On white

12.30
#331994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331994
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331994#FFFFFF#000000##FFFFFF
##3319941.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #331994;
/* rgb */ color: rgb(51, 25, 148);
/* oklch */ color: oklch(34.9% 0.182 281.0);
Tailwind
colors: {
  custom: {
    50: '#795bb5',
    500: '#331994',
    950: '#000000',
  },
}
SCSS
$custom: #331994;
$custom-light: #795bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#331994",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 252.683,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34908,
    "c": 0.18234,
    "h": 281
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #331994

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

Preview Lab → · Contrast checker → · Palette generator →

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