#332191#332191

#332191 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.172 H 280.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#332191
RGBrgb(51, 33, 145)
HSLhsl(250, 63%, 35%)
HSVhsv(250, 77%, 57%)
CMYKcmyk(64.8%, 77.2%, 0%, 43.1%)
CIE-LABlab(23.12, 41.15, -58.44)
CIE-LCHlch(23.12, 71.47, 305.15°)
OKLaboklab(35.54% 0.0311 -0.1686)
OKLCHoklch(35.54% 0.172 280.5)
XYZxyz(7.0183, 3.8353, 27.1530)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332191 #7F9121
analogous
#214791 #332191 #6B2191
triadic
#332191 #913321 #219133
tetradic
#332191 #912147 #7F9121 #21916B
square
#332191 #912147 #7F9121 #21916B
split-complementary
#332191 #916B21 #479121
monochromatic
#100A2D #21165F #332191 #452CC3 #6954D8

Accessibility & contrast

On white

11.88
#332191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#332191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332191
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332191#FFFFFF#000000##FFFFFF
##3321911.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332191;
/* rgb */ color: rgb(51, 33, 145);
/* oklch */ color: oklch(35.5% 0.172 280.5);
Tailwind
colors: {
  custom: {
    50: '#785fb2',
    500: '#332191',
    950: '#000000',
  },
}
SCSS
$custom: #332191;
$custom-light: #785fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#332191",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 249.643,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35538,
    "c": 0.1715,
    "h": 280.5
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#332191
secondary
#ABBC52
accent
#E642CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332191

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

Preview Lab → · Contrast checker → · Palette generator →

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