#331560#331560

#331560 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.124 H 295.9°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#331560
RGBrgb(51, 21, 96)
HSLhsl(264, 64%, 23%)
HSVhsv(264, 78%, 38%)
CMYKcmyk(46.9%, 78.1%, 0%, 62.4%)
CIE-LABlab(15.93, 32.52, -38.86)
CIE-LCHlch(15.93, 50.67, 309.93°)
OKLaboklab(28.98% 0.0541 -0.1112)
OKLCHoklch(28.98% 0.124 295.9)
XYZxyz(3.7442, 2.0846, 11.2692)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331560 #426015
analogous
#151C60 #331560 #581560
triadic
#331560 #603315 #156033
tetradic
#331560 #60151C #426015 #156058
square
#331560 #60151C #426015 #156058
split-complementary
#331560 #605815 #1C6015
monochromatic
#0D0519 #180A2E #331560 #4E2092 #682BC4

Accessibility & contrast

On white

14.82
#331560 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331560 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331560
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331560#FFFFFF#000000##FFFFFF
##3315601.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#272839
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331560;
/* rgb */ color: rgb(51, 21, 96);
/* oklch */ color: oklch(29.0% 0.124 295.9);
Tailwind
colors: {
  custom: {
    50: '#70568e',
    500: '#331560',
    950: '#000000',
  },
}
SCSS
$custom: #331560;
$custom-light: #70568e;
$custom-dark: #000000;
JSON
{
  "hex": "#331560",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 96
  },
  "hsl": {
    "h": 264,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28976,
    "c": 0.12368,
    "h": 295.9
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#331560
secondary
#72973A
accent
#E741A5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331560

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

Preview Lab → · Contrast checker → · Palette generator →

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