#331563#331563

#331563 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.127 H 294.7°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#331563
RGBrgb(51, 21, 99)
HSLhsl(263, 65%, 24%)
HSVhsv(263, 79%, 39%)
CMYKcmyk(48.5%, 78.8%, 0%, 61.2%)
CIE-LABlab(16.21, 33.40, -40.38)
CIE-LCHlch(16.21, 52.40, 309.59°)
OKLaboklab(29.27% 0.0533 -0.1157)
OKLCHoklch(29.27% 0.127 294.7)
XYZxyz(3.8849, 2.1409, 12.0105)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331563 #456315
analogous
#151E63 #331563 #5A1563
triadic
#331563 #633315 #156333
tetradic
#331563 #63151E #456315 #15635A
square
#331563 #63151E #456315 #15635A
split-complementary
#331563 #635A15 #1E6315
monochromatic
#0D0519 #190A31 #331563 #4D2095 #672AC8

Accessibility & contrast

On white

14.70
#331563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331563 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331563
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331563#FFFFFF#000000##FFFFFF
##3315631.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#252A3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331563;
/* rgb */ color: rgb(51, 21, 99);
/* oklch */ color: oklch(29.3% 0.127 294.7);
Tailwind
colors: {
  custom: {
    50: '#705690',
    500: '#331563',
    950: '#000000',
  },
}
SCSS
$custom: #331563;
$custom-light: #705690;
$custom-dark: #000000;
JSON
{
  "hex": "#331563",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 263.077,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29265,
    "c": 0.12739,
    "h": 294.7
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#331563
secondary
#759A3A
accent
#E840A7
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #331563

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

Preview Lab → · Contrast checker → · Palette generator →

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