#332EA6#332EA6

#332EA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.184 H 275.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#332EA6
RGBrgb(51, 46, 166)
HSLhsl(243, 57%, 42%)
HSVhsv(243, 72%, 65%)
CMYKcmyk(69.3%, 72.3%, 0%, 34.9%)
CIE-LABlab(27.87, 40.66, -63.45)
CIE-LCHlch(27.87, 75.36, 302.65°)
OKLaboklab(39.55% 0.0184 -0.1834)
OKLCHoklch(39.55% 0.184 275.7)
XYZxyz(9.2229, 5.4101, 36.6272)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA6 #A1A62E
analogous
#2E65A6 #332EA6 #6F2EA6
triadic
#332EA6 #A6332E #2EA633
tetradic
#332EA6 #A62E65 #A1A62E #2EA66F
square
#332EA6 #A62E65 #A1A62E #2EA66F
split-complementary
#332EA6 #A66F2E #65A62E
monochromatic
#161346 #242176 #332EA6 #4B46CC #7A76D9

Accessibility & contrast

On white

10.09
#332EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#332EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA6
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA6#FFFFFF#000000##FFFFFF
##332EA61.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332ea6;
/* rgb */ color: rgb(51, 46, 166);
/* oklch */ color: oklch(39.6% 0.184 275.7);
Tailwind
colors: {
  custom: {
    50: '#7b68c2',
    500: '#332ea6',
    950: '#000000',
  },
}
SCSS
$custom: #332ea6;
$custom-light: #7b68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea6",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 242.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39551,
    "c": 0.18428,
    "h": 275.7
  },
  "luminance": 0.05411
}

Semantic roles & 50–950 ramp

primary
#332EA6
secondary
#BDC16F
accent
#E048DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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