#331164#331164

#331164 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.133 H 295.2°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#331164
RGBrgb(51, 17, 100)
HSLhsl(265, 71%, 23%)
HSVhsv(265, 83%, 39%)
CMYKcmyk(49%, 83%, 0%, 60.8%)
CIE-LABlab(15.62, 35.67, -42.02)
CIE-LCHlch(15.62, 55.11, 310.33°)
OKLaboklab(28.88% 0.0566 -0.1205)
OKLCHoklch(28.88% 0.133 295.2)
XYZxyz(3.8653, 2.0247, 12.2413)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331164 #426411
analogous
#111964 #331164 #5C1164
triadic
#331164 #643311 #116433
tetradic
#331164 #641119 #426411 #11645C
square
#331164 #641119 #426411 #11645C
split-complementary
#331164 #645C11 #196411
monochromatic
#0D041A #180830 #331164 #4E1A98 #6823CD

Accessibility & contrast

On white

14.95
#331164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331164
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331164#FFFFFF#000000##FFFFFF
##3311641.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#25283A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331164;
/* rgb */ color: rgb(51, 17, 100);
/* oklch */ color: oklch(28.9% 0.133 295.2);
Tailwind
colors: {
  custom: {
    50: '#715491',
    500: '#331164',
    950: '#000000',
  },
}
SCSS
$custom: #331164;
$custom-light: #715491;
$custom-dark: #000000;
JSON
{
  "hex": "#331164",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 264.578,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28879,
    "c": 0.13312,
    "h": 295.2
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#331164
secondary
#729C35
accent
#EE3AA4
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331164

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

Preview Lab → · Contrast checker → · Palette generator →

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