#331567#331567

#331567 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.132 H 293.2°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#331567
RGBrgb(51, 21, 103)
HSLhsl(262, 66%, 24%)
HSVhsv(262, 80%, 40%)
CMYKcmyk(50.5%, 79.6%, 0%, 59.6%)
CIE-LABlab(16.60, 34.57, -42.39)
CIE-LCHlch(16.60, 54.70, 309.20°)
OKLaboklab(29.66% 0.0522 -0.1216)
OKLCHoklch(29.66% 0.132 293.2)
XYZxyz(4.0809, 2.2193, 13.0427)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331567 #496715
analogous
#152067 #331567 #5C1567
triadic
#331567 #673315 #156733
tetradic
#331567 #671520 #496715 #15675C
square
#331567 #671520 #496715 #15675C
split-complementary
#331567 #675C15 #206715
monochromatic
#0D0519 #1A0B34 #331567 #4C1F9A #652ACD

Accessibility & contrast

On white

14.54
#331567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331567 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331567
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331567#FFFFFF#000000##FFFFFF
##3315671.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#232B3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331567;
/* rgb */ color: rgb(51, 21, 103);
/* oklch */ color: oklch(29.7% 0.132 293.2);
Tailwind
colors: {
  custom: {
    50: '#715693',
    500: '#331567',
    950: '#000000',
  },
}
SCSS
$custom: #331567;
$custom-light: #715693;
$custom-dark: #000000;
JSON
{
  "hex": "#331567",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 261.951,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29658,
    "c": 0.13231,
    "h": 293.2
  },
  "luminance": 0.02219
}

Semantic roles & 50–950 ramp

primary
#331567
secondary
#799E3A
accent
#E93FAB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331567

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

Preview Lab → · Contrast checker → · Palette generator →

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