#332EA1#332EA1

#332EA1 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.178 H 276.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#332EA1
RGBrgb(51, 46, 161)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 71%, 63%)
CMYKcmyk(68.3%, 71.4%, 0%, 36.9%)
CIE-LABlab(27.38, 38.98, -61.23)
CIE-LCHlch(27.38, 72.59, 302.48°)
OKLaboklab(39.05% 0.0192 -0.1769)
OKLCHoklch(39.05% 0.178 276.2)
XYZxyz(8.7732, 5.2302, 34.2585)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA1 #9CA12E
analogous
#2E62A1 #332EA1 #6C2EA1
triadic
#332EA1 #A1332E #2EA133
tetradic
#332EA1 #A12E62 #9CA12E #2EA16C
square
#332EA1 #A12E62 #9CA12E #2EA16C
split-complementary
#332EA1 #A16C2E #62A12E
monochromatic
#151342 #242071 #332EA1 #4943C9 #7773D7

Accessibility & contrast

On white

10.26
#332EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332EA1
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA1#FFFFFF#000000##FFFFFF
##332EA11.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332ea1;
/* rgb */ color: rgb(51, 46, 161);
/* oklch */ color: oklch(39.1% 0.178 276.2);
Tailwind
colors: {
  custom: {
    50: '#7a68be',
    500: '#332ea1',
    950: '#000000',
  },
}
SCSS
$custom: #332ea1;
$custom-light: #7a68be;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea1",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 242.609,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.3905,
    "c": 0.17793,
    "h": 276.2
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

primary
#332EA1
secondary
#BBBE6C
accent
#DF49D8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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