#331565#331565

#331565 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.130 H 294.0°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#331565
RGBrgb(51, 21, 101)
HSLhsl(263, 66%, 24%)
HSVhsv(263, 79%, 40%)
CMYKcmyk(49.5%, 79.2%, 0%, 60.4%)
CIE-LABlab(16.40, 33.98, -41.39)
CIE-LCHlch(16.40, 53.55, 309.39°)
OKLaboklab(29.46% 0.0527 -0.1187)
OKLCHoklch(29.46% 0.13 294)
XYZxyz(3.9817, 2.1796, 12.5203)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331565 #476515
analogous
#151F65 #331565 #5B1565
triadic
#331565 #653315 #156533
tetradic
#331565 #65151F #476515 #15655B
square
#331565 #65151F #476515 #15655B
split-complementary
#331565 #655B15 #1F6515
monochromatic
#0D0519 #190A32 #331565 #4D2098 #662ACA

Accessibility & contrast

On white

14.62
#331565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331565
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331565#FFFFFF#000000##FFFFFF
##3315651.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#242A3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331565;
/* rgb */ color: rgb(51, 21, 101);
/* oklch */ color: oklch(29.5% 0.130 294.0);
Tailwind
colors: {
  custom: {
    50: '#715692',
    500: '#331565',
    950: '#000000',
  },
}
SCSS
$custom: #331565;
$custom-light: #715692;
$custom-dark: #000000;
JSON
{
  "hex": "#331565",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 262.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2946,
    "c": 0.12985,
    "h": 294
  },
  "luminance": 0.0218
}

Semantic roles & 50–950 ramp

primary
#331565
secondary
#779C3A
accent
#E93FA9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331565

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

Preview Lab → · Contrast checker → · Palette generator →

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