#332085#332085

#332085 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.158 H 282.8°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#332085
RGBrgb(51, 32, 133)
HSLhsl(251, 61%, 32%)
HSVhsv(251, 76%, 52%)
CMYKcmyk(61.7%, 75.9%, 0%, 47.8%)
CIE-LABlab(21.69, 37.89, -53.30)
CIE-LCHlch(21.69, 65.40, 305.40°)
OKLaboklab(34.16% 0.0349 -0.1536)
OKLCHoklch(34.16% 0.158 282.8)
XYZxyz(6.1141, 3.4299, 22.5256)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332085 #728520
analogous
#204085 #332085 #652085
triadic
#332085 #853320 #208533
tetradic
#332085 #852040 #728520 #208565
square
#332085 #852040 #728520 #208565
split-complementary
#332085 #856520 #408520
monochromatic
#0D0822 #201454 #332085 #462CB6 #654CD4

Accessibility & contrast

On white

12.46
#332085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#332085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332085
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332085#FFFFFF#000000##FFFFFF
##3320851.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332085;
/* rgb */ color: rgb(51, 32, 133);
/* oklch */ color: oklch(34.2% 0.158 282.8);
Tailwind
colors: {
  custom: {
    50: '#755eaa',
    500: '#332085',
    950: '#000000',
  },
}
SCSS
$custom: #332085;
$custom-light: #755eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#332085",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 251.287,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34157,
    "c": 0.15755,
    "h": 282.8
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#332085
secondary
#A2B74A
accent
#E443C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #332085

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

Preview Lab → · Contrast checker → · Palette generator →

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