#332DB8#332DB8

#332DB8 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.3% C 0.207 H 274.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#332DB8
RGBrgb(51, 45, 184)
HSLhsl(243, 61%, 45%)
HSVhsv(243, 76%, 72%)
CMYKcmyk(72.3%, 75.5%, 0%, 27.8%)
CIE-LABlab(29.51, 47.13, -71.52)
CIE-LCHlch(29.51, 85.65, 303.38°)
OKLaboklab(41.27% 0.0155 -0.2069)
OKLCHoklch(41.27% 0.207 274.3)
XYZxyz(10.9525, 6.0402, 45.9268)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DB8 #B2B82D
analogous
#2D6CB8 #332DB8 #792DB8
triadic
#332DB8 #B8332D #2DB833
tetradic
#332DB8 #B82D6C #B2B82D #2DB879
square
#332DB8 #B82D6C #B2B82D #2DB879
split-complementary
#332DB8 #B8792D #6CB82D
monochromatic
#181556 #252187 #332DB8 #544ED4 #8480E0

Accessibility & contrast

On white

9.51
#332DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#332DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DB8
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DB8#FFFFFF#000000##FFFFFF
##332DB81.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBC
Deuteranopia (green-blind)
#003FB6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #332db8;
/* rgb */ color: rgb(51, 45, 184);
/* oklch */ color: oklch(41.3% 0.207 274.3);
Tailwind
colors: {
  custom: {
    50: '#7f68cf',
    500: '#332db8',
    950: '#000000',
  },
}
SCSS
$custom: #332db8;
$custom-light: #7f68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#332db8",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 242.59,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41267,
    "c": 0.20744,
    "h": 274.3
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#332DB8
secondary
#C5C978
accent
#E444DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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