#331572#331572

#331572 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.146 H 289.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#331572
RGBrgb(51, 21, 114)
HSLhsl(259, 69%, 26%)
HSVhsv(259, 82%, 45%)
CMYKcmyk(55.3%, 81.6%, 0%, 55.3%)
CIE-LABlab(17.71, 37.81, -47.73)
CIE-LCHlch(17.71, 60.89, 308.39°)
OKLaboklab(30.78% 0.0488 -0.1372)
OKLCHoklch(30.78% 0.146 289.6)
XYZxyz(4.6698, 2.4548, 16.1441)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331572 #547215
analogous
#152672 #331572 #621572
triadic
#331572 #723315 #157233
tetradic
#331572 #721526 #547215 #157262
square
#331572 #721526 #547215 #157262
split-complementary
#331572 #726215 #267215
monochromatic
#0C051A #1C0B3E #331572 #4A1FA6 #622AD8

Accessibility & contrast

On white

14.08
#331572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331572
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331572#FFFFFF#000000##FFFFFF
##3315721.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#1B3043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331572;
/* rgb */ color: rgb(51, 21, 114);
/* oklch */ color: oklch(30.8% 0.146 289.6);
Tailwind
colors: {
  custom: {
    50: '#73579b',
    500: '#331572',
    950: '#000000',
  },
}
SCSS
$custom: #331572;
$custom-light: #73579b;
$custom-dark: #000000;
JSON
{
  "hex": "#331572",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 259.355,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30777,
    "c": 0.14565,
    "h": 289.6
  },
  "luminance": 0.02455
}

Semantic roles & 50–950 ramp

primary
#331572
secondary
#85A83B
accent
#EC3CB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331572

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

Preview Lab → · Contrast checker → · Palette generator →

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