#332EA9#332EA9

#332EA9 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.188 H 275.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#332EA9
RGBrgb(51, 46, 169)
HSLhsl(242, 57%, 42%)
HSVhsv(242, 73%, 66%)
CMYKcmyk(69.8%, 72.8%, 0%, 33.7%)
CIE-LABlab(28.17, 41.66, -64.77)
CIE-LCHlch(28.17, 77.01, 302.75°)
OKLaboklab(39.85% 0.0178 -0.1872)
OKLCHoklch(39.85% 0.188 275.4)
XYZxyz(9.5013, 5.5215, 38.0935)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA9 #A4A92E
analogous
#2E67A9 #332EA9 #712EA9
triadic
#332EA9 #A9332E #2EA933
tetradic
#332EA9 #A92E67 #A4A92E #2EA971
square
#332EA9 #A92E67 #A4A92E #2EA971
split-complementary
#332EA9 #A9712E #67A92E
monochromatic
#161449 #242179 #332EA9 #4D47CD #7B77DA

Accessibility & contrast

On white

9.98
#332EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#332EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA9
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA9#FFFFFF#000000##FFFFFF
##332EA91.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332ea9;
/* rgb */ color: rgb(51, 46, 169);
/* oklch */ color: oklch(39.9% 0.188 275.4);
Tailwind
colors: {
  custom: {
    50: '#7c68c4',
    500: '#332ea9',
    950: '#000000',
  },
}
SCSS
$custom: #332ea9;
$custom-light: #7c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea9",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 242.439,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39854,
    "c": 0.18805,
    "h": 275.4
  },
  "luminance": 0.05522
}

Semantic roles & 50–950 ramp

primary
#332EA9
secondary
#BFC271
accent
#E047DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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