#332090#332090

#332090 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.171 H 280.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#332090
RGBrgb(51, 32, 144)
HSLhsl(250, 64%, 35%)
HSVhsv(250, 78%, 56%)
CMYKcmyk(64.6%, 77.8%, 0%, 43.5%)
CIE-LABlab(22.83, 41.37, -58.30)
CIE-LCHlch(22.83, 71.49, 305.36°)
OKLaboklab(35.3% 0.032 -0.1682)
OKLCHoklch(35.3% 0.171 280.8)
XYZxyz(6.9142, 3.7499, 26.7396)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332090 #7D9020
analogous
#204590 #332090 #6B2090
triadic
#332090 #903320 #209033
tetradic
#332090 #902045 #7D9020 #20906B
square
#332090 #902045 #7D9020 #20906B
split-complementary
#332090 #906B20 #459020
monochromatic
#100A2C #21155E #332090 #452BC2 #6952D9

Accessibility & contrast

On white

12.00
#332090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#332090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332090
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332090#FFFFFF#000000##FFFFFF
##3320901.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332090;
/* rgb */ color: rgb(51, 32, 144);
/* oklch */ color: oklch(35.3% 0.171 280.8);
Tailwind
colors: {
  custom: {
    50: '#785eb2',
    500: '#332090',
    950: '#000000',
  },
}
SCSS
$custom: #332090;
$custom-light: #785eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#332090",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 250.179,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35301,
    "c": 0.17126,
    "h": 280.8
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#332090
secondary
#AABC50
accent
#E741CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332090

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

Preview Lab → · Contrast checker → · Palette generator →

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