#332170#332170

#332170 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.3% C 0.129 H 287.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#332170
RGBrgb(51, 33, 112)
HSLhsl(254, 54%, 28%)
HSVhsv(254, 71%, 44%)
CMYKcmyk(54.5%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.89, 30.55, -42.87)
CIE-LCHlch(19.89, 52.64, 305.47°)
OKLaboklab(32.26% 0.0383 -0.1231)
OKLCHoklch(32.26% 0.129 287.3)
XYZxyz(4.8329, 2.9611, 15.6430)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332170 #5E7021
analogous
#213670 #332170 #5A2170
triadic
#332170 #703321 #217033
tetradic
#332170 #702136 #5E7021 #21705A
square
#332170 #702136 #5E7021 #21705A
split-complementary
#332170 #705A21 #367021
monochromatic
#0B0718 #1D1341 #332170 #492F9F #6244C8

Accessibility & contrast

On white

13.19
#332170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#332170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332170
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332170#FFFFFF#000000##FFFFFF
##3321701.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#1C3545
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #332170;
/* rgb */ color: rgb(51, 33, 112);
/* oklch */ color: oklch(32.3% 0.129 287.3);
Tailwind
colors: {
  custom: {
    50: '#715e9a',
    500: '#332170',
    950: '#000000',
  },
}
SCSS
$custom: #332170;
$custom-light: #715e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#332170",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 253.671,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32257,
    "c": 0.12891,
    "h": 287.3
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#332170
secondary
#8FA449
accent
#DE4ABC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332170

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

Preview Lab → · Contrast checker → · Palette generator →

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