#332AA4#332AA4

#332AA4 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.186 H 276.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#332AA4
RGBrgb(51, 42, 164)
HSLhsl(244, 59%, 40%)
HSVhsv(244, 74%, 64%)
CMYKcmyk(68.9%, 74.4%, 0%, 35.7%)
CIE-LABlab(26.85, 42.30, -63.93)
CIE-LCHlch(26.85, 76.66, 303.49°)
OKLaboklab(38.76% 0.0212 -0.1847)
OKLCHoklch(38.76% 0.186 276.5)
XYZxyz(8.8919, 5.0393, 35.6188)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AA4 #9BA42A
analogous
#2A5EA4 #332AA4 #702AA4
triadic
#332AA4 #A4332A #2AA433
tetradic
#332AA4 #A42A5E #9BA42A #2AA470
square
#332AA4 #A42A5E #9BA42A #2AA470
split-complementary
#332AA4 #A4702A #5EA42A
monochromatic
#151143 #241E73 #332AA4 #483ECD #766EDA

Accessibility & contrast

On white

10.46
#332AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#332AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AA4
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AA4#FFFFFF#000000##FFFFFF
##332AA41.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332aa4;
/* rgb */ color: rgb(51, 42, 164);
/* oklch */ color: oklch(38.8% 0.186 276.5);
Tailwind
colors: {
  custom: {
    50: '#7b65c0',
    500: '#332aa4',
    950: '#000000',
  },
}
SCSS
$custom: #332aa4;
$custom-light: #7b65c0;
$custom-dark: #000000;
JSON
{
  "hex": "#332aa4",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 244.426,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3876,
    "c": 0.18596,
    "h": 276.5
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#332AA4
secondary
#BAC169
accent
#E245D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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