#332EA2#332EA2

#332EA2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.179 H 276.1°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#332EA2
RGBrgb(51, 46, 162)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 72%, 64%)
CMYKcmyk(68.5%, 71.6%, 0%, 36.5%)
CIE-LABlab(27.48, 39.32, -61.68)
CIE-LCHlch(27.48, 73.15, 302.51°)
OKLaboklab(39.15% 0.0191 -0.1782)
OKLCHoklch(39.15% 0.179 276.1)
XYZxyz(8.8617, 5.2656, 34.7248)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA2 #9DA22E
analogous
#2E63A2 #332EA2 #6D2EA2
triadic
#332EA2 #A2332E #2EA233
tetradic
#332EA2 #A22E63 #9DA22E #2EA26D
square
#332EA2 #A22E63 #9DA22E #2EA26D
split-complementary
#332EA2 #A26D2E #63A22E
monochromatic
#151343 #242072 #332EA2 #4943CA #7773D7

Accessibility & contrast

On white

10.23
#332EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#332EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA2
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA2#FFFFFF#000000##FFFFFF
##332EA21.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332ea2;
/* rgb */ color: rgb(51, 46, 162);
/* oklch */ color: oklch(39.1% 0.179 276.1);
Tailwind
colors: {
  custom: {
    50: '#7a68bf',
    500: '#332ea2',
    950: '#000000',
  },
}
SCSS
$custom: #332ea2;
$custom-light: #7a68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea2",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 242.586,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3915,
    "c": 0.17921,
    "h": 276.1
  },
  "luminance": 0.05266
}

Semantic roles & 50–950 ramp

primary
#332EA2
secondary
#BBBF6D
accent
#DF49D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332EA2

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

Preview Lab → · Contrast checker → · Palette generator →

#332EA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva