#332EA4#332EA4

#332EA4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.182 H 275.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#332EA4
RGBrgb(51, 46, 164)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 72%, 64%)
CMYKcmyk(68.9%, 72%, 0%, 35.7%)
CIE-LABlab(27.67, 39.99, -62.57)
CIE-LCHlch(27.67, 74.26, 302.58°)
OKLaboklab(39.35% 0.0187 -0.1808)
OKLCHoklch(39.35% 0.182 275.9)
XYZxyz(9.0409, 5.3373, 35.6685)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA4 #9FA42E
analogous
#2E64A4 #332EA4 #6E2EA4
triadic
#332EA4 #A4332E #2EA433
tetradic
#332EA4 #A42E64 #9FA42E #2EA46E
square
#332EA4 #A42E64 #9FA42E #2EA46E
split-complementary
#332EA4 #A46E2E #64A42E
monochromatic
#151344 #242174 #332EA4 #4A45CB #7974D8

Accessibility & contrast

On white

10.16
#332EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#332EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA4
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA4#FFFFFF#000000##FFFFFF
##332EA41.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332ea4;
/* rgb */ color: rgb(51, 46, 164);
/* oklch */ color: oklch(39.4% 0.182 275.9);
Tailwind
colors: {
  custom: {
    50: '#7b68c0',
    500: '#332ea4',
    950: '#000000',
  },
}
SCSS
$custom: #332ea4;
$custom-light: #7b68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea4",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 242.542,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.3935,
    "c": 0.18175,
    "h": 275.9
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#332EA4
secondary
#BCC06E
accent
#DF48D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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