#332EA3#332EA3

#332EA3 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.180 H 276.0°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#332EA3
RGBrgb(51, 46, 163)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 72%, 64%)
CMYKcmyk(68.7%, 71.8%, 0%, 36.1%)
CIE-LABlab(27.58, 39.65, -62.13)
CIE-LCHlch(27.58, 73.70, 302.55°)
OKLaboklab(39.25% 0.0189 -0.1795)
OKLCHoklch(39.25% 0.18 276)
XYZxyz(8.9509, 5.3013, 35.1948)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA3 #9EA32E
analogous
#2E63A3 #332EA3 #6D2EA3
triadic
#332EA3 #A3332E #2EA333
tetradic
#332EA3 #A32E63 #9EA32E #2EA36D
square
#332EA3 #A32E63 #9EA32E #2EA36D
split-complementary
#332EA3 #A36D2E #63A32E
monochromatic
#151344 #242173 #332EA3 #4A44CA #7874D8

Accessibility & contrast

On white

10.19
#332EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#332EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA3
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA3#FFFFFF#000000##FFFFFF
##332EA31.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332ea3;
/* rgb */ color: rgb(51, 46, 163);
/* oklch */ color: oklch(39.3% 0.180 276.0);
Tailwind
colors: {
  custom: {
    50: '#7b68bf',
    500: '#332ea3',
    950: '#000000',
  },
}
SCSS
$custom: #332ea3;
$custom-light: #7b68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea3",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 242.564,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.3925,
    "c": 0.18048,
    "h": 276
  },
  "luminance": 0.05302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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