#331568#331568

#331568 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.134 H 292.9°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#331568
RGBrgb(51, 21, 104)
HSLhsl(262, 66%, 25%)
HSVhsv(262, 80%, 41%)
CMYKcmyk(51%, 79.8%, 0%, 59.2%)
CIE-LABlab(16.70, 34.87, -42.88)
CIE-LCHlch(16.70, 55.27, 309.11°)
OKLaboklab(29.76% 0.0519 -0.123)
OKLCHoklch(29.76% 0.134 292.9)
XYZxyz(4.1314, 2.2395, 13.3086)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331568 #4A6815
analogous
#152068 #331568 #5D1568
triadic
#331568 #683315 #156833
tetradic
#331568 #681520 #4A6815 #15685D
square
#331568 #681520 #4A6815 #15685D
split-complementary
#331568 #685D15 #206815
monochromatic
#0C0519 #1A0B35 #331568 #4C1F9B #652ACE

Accessibility & contrast

On white

14.50
#331568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331568
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331568#FFFFFF#000000##FFFFFF
##3315681.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#222C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331568;
/* rgb */ color: rgb(51, 21, 104);
/* oklch */ color: oklch(29.8% 0.134 292.9);
Tailwind
colors: {
  custom: {
    50: '#715694',
    500: '#331568',
    950: '#000000',
  },
}
SCSS
$custom: #331568;
$custom-light: #715694;
$custom-dark: #000000;
JSON
{
  "hex": "#331568",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 261.687,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29757,
    "c": 0.13353,
    "h": 292.9
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#331568
secondary
#7A9F3A
accent
#E93EAC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331568

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

Preview Lab → · Contrast checker → · Palette generator →

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