#331681#331681

#331681 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.163 H 285.3°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#331681
RGBrgb(51, 22, 129)
HSLhsl(256, 71%, 30%)
HSVhsv(256, 83%, 51%)
CMYKcmyk(60.5%, 82.9%, 0%, 49.4%)
CIE-LABlab(19.48, 41.77, -54.41)
CIE-LCHlch(19.48, 68.60, 307.51°)
OKLaboklab(32.49% 0.043 -0.1568)
OKLCHoklch(32.49% 0.163 285.3)
XYZxyz(5.6134, 2.8623, 21.0213)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331681 #648116
analogous
#162E81 #331681 #691681
triadic
#331681 #813316 #168133
tetradic
#331681 #81162E #648116 #168169
square
#331681 #81162E #648116 #168169
split-complementary
#331681 #816916 #2E8116
monochromatic
#0A041A #1E0D4D #331681 #481FB5 #6235DD

Accessibility & contrast

On white

13.35
#331681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#331681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331681
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331681#FFFFFF#000000##FFFFFF
##3316811.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#06364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331681;
/* rgb */ color: rgb(51, 22, 129);
/* oklch */ color: oklch(32.5% 0.163 285.3);
Tailwind
colors: {
  custom: {
    50: '#7558a7',
    500: '#331681',
    950: '#000000',
  },
}
SCSS
$custom: #331681;
$custom-light: #7558a7;
$custom-dark: #000000;
JSON
{
  "hex": "#331681",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 256.262,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32488,
    "c": 0.16257,
    "h": 285.3
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#331681
secondary
#95B63D
accent
#EE3ABD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #331681

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

Preview Lab → · Contrast checker → · Palette generator →

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