#332087#332087

#332087 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.160 H 282.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#332087
RGBrgb(51, 32, 135)
HSLhsl(251, 62%, 33%)
HSVhsv(251, 76%, 53%)
CMYKcmyk(62.2%, 76.3%, 0%, 47.1%)
CIE-LABlab(21.89, 38.52, -54.23)
CIE-LCHlch(21.89, 66.52, 305.39°)
OKLaboklab(34.36% 0.0344 -0.1563)
OKLCHoklch(34.36% 0.16 282.4)
XYZxyz(6.2536, 3.4857, 23.2602)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332087 #748720
analogous
#204087 #332087 #662087
triadic
#332087 #873320 #208733
tetradic
#332087 #872040 #748720 #208766
square
#332087 #872040 #748720 #208766
split-complementary
#332087 #876620 #408720
monochromatic
#0E0924 #201456 #332087 #462CB8 #664DD5

Accessibility & contrast

On white

12.37
#332087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#332087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332087
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332087#FFFFFF#000000##FFFFFF
##3320871.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332087;
/* rgb */ color: rgb(51, 32, 135);
/* oklch */ color: oklch(34.4% 0.160 282.4);
Tailwind
colors: {
  custom: {
    50: '#765eab',
    500: '#332087',
    950: '#000000',
  },
}
SCSS
$custom: #332087;
$custom-light: #765eab;
$custom-dark: #000000;
JSON
{
  "hex": "#332087",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 251.068,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34362,
    "c": 0.16007,
    "h": 282.4
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#332087
secondary
#A4B84B
accent
#E543C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332087

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

Preview Lab → · Contrast checker → · Palette generator →

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