#332AA5#332AA5

#332AA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.187 H 276.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#332AA5
RGBrgb(51, 42, 165)
HSLhsl(244, 59%, 41%)
HSVhsv(244, 75%, 65%)
CMYKcmyk(69.1%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.95, 42.62, -64.37)
CIE-LCHlch(26.95, 77.20, 303.51°)
OKLaboklab(38.86% 0.021 -0.186)
OKLCHoklch(38.86% 0.187 276.4)
XYZxyz(8.9825, 5.0755, 36.0963)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AA5 #9CA52A
analogous
#2A5EA5 #332AA5 #702AA5
triadic
#332AA5 #A5332A #2AA533
tetradic
#332AA5 #A52A5E #9CA52A #2AA570
square
#332AA5 #A52A5E #9CA52A #2AA570
split-complementary
#332AA5 #A5702A #5EA52A
monochromatic
#151143 #241E74 #332AA5 #493ECE #776FDA

Accessibility & contrast

On white

10.42
#332AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#332AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AA5
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AA5#FFFFFF#000000##FFFFFF
##332AA51.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332aa5;
/* rgb */ color: rgb(51, 42, 165);
/* oklch */ color: oklch(38.9% 0.187 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b66c1',
    500: '#332aa5',
    950: '#000000',
  },
}
SCSS
$custom: #332aa5;
$custom-light: #7b66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#332aa5",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 244.39,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38863,
    "c": 0.1872,
    "h": 276.4
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#332AA5
secondary
#BBC169
accent
#E345D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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