#331562#331562

#331562 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.126 H 295.1°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#331562
RGBrgb(51, 21, 98)
HSLhsl(263, 65%, 23%)
HSVhsv(263, 79%, 38%)
CMYKcmyk(48%, 78.6%, 0%, 61.6%)
CIE-LABlab(16.11, 33.10, -39.88)
CIE-LCHlch(16.11, 51.83, 309.70°)
OKLaboklab(29.17% 0.0536 -0.1142)
OKLCHoklch(29.17% 0.126 295.1)
XYZxyz(3.8374, 2.1219, 11.7603)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331562 #446215
analogous
#151D62 #331562 #591562
triadic
#331562 #623315 #156233
tetradic
#331562 #62151D #446215 #156259
square
#331562 #62151D #446215 #156259
split-complementary
#331562 #625915 #1D6215
monochromatic
#0D0519 #190A30 #331562 #4D2094 #672BC7

Accessibility & contrast

On white

14.74
#331562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331562
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331562#FFFFFF#000000##FFFFFF
##3315621.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#26293A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331562;
/* rgb */ color: rgb(51, 21, 98);
/* oklch */ color: oklch(29.2% 0.126 295.1);
Tailwind
colors: {
  custom: {
    50: '#70568f',
    500: '#331562',
    950: '#000000',
  },
}
SCSS
$custom: #331562;
$custom-light: #70568f;
$custom-dark: #000000;
JSON
{
  "hex": "#331562",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 263.377,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29168,
    "c": 0.12616,
    "h": 295.1
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#331562
secondary
#74993A
accent
#E840A6
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331562

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

Preview Lab → · Contrast checker → · Palette generator →

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