#332091#332091

#332091 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.172 H 280.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#332091
RGBrgb(51, 32, 145)
HSLhsl(250, 64%, 35%)
HSVhsv(250, 78%, 57%)
CMYKcmyk(64.8%, 77.9%, 0%, 43.1%)
CIE-LABlab(22.93, 41.68, -58.75)
CIE-LCHlch(22.93, 72.03, 305.36°)
OKLaboklab(35.41% 0.0318 -0.1695)
OKLCHoklch(35.41% 0.172 280.6)
XYZxyz(6.9910, 3.7806, 27.1439)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332091 #7E9120
analogous
#204691 #332091 #6B2091
triadic
#332091 #913320 #209133
tetradic
#332091 #912046 #7E9120 #20916B
square
#332091 #912046 #7E9120 #20916B
split-complementary
#332091 #916B20 #469120
monochromatic
#100A2D #21155F #332091 #452BC3 #6952D9

Accessibility & contrast

On white

11.96
#332091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#332091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332091
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332091#FFFFFF#000000##FFFFFF
##3320911.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332091;
/* rgb */ color: rgb(51, 32, 145);
/* oklch */ color: oklch(35.4% 0.172 280.6);
Tailwind
colors: {
  custom: {
    50: '#785eb2',
    500: '#332091',
    950: '#000000',
  },
}
SCSS
$custom: #332091;
$custom-light: #785eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#332091",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 145
  },
  "hsl": {
    "h": 250.088,
    "s": 63.842,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35407,
    "c": 0.17249,
    "h": 280.6
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332091

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

Preview Lab → · Contrast checker → · Palette generator →

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