#332AB9#332AB9

#332AB9 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.0% C 0.211 H 274.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#332AB9
RGBrgb(51, 42, 185)
HSLhsl(244, 63%, 45%)
HSVhsv(244, 77%, 73%)
CMYKcmyk(72.4%, 77.3%, 0%, 27.5%)
CIE-LABlab(29.06, 49.05, -72.86)
CIE-LCHlch(29.06, 87.83, 303.95°)
OKLaboklab(40.98% 0.0166 -0.2107)
OKLCHoklch(40.98% 0.211 274.5)
XYZxyz(10.9473, 5.8614, 46.4440)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB9 #B0B92A
analogous
#2A69B9 #332AB9 #7B2AB9
triadic
#332AB9 #B9332A #2AB933
tetradic
#332AB9 #B92A69 #B0B92A #2AB97B
square
#332AB9 #B92A69 #B0B92A #2AB97B
split-complementary
#332AB9 #B97B2A #69B92A
monochromatic
#181355 #251F87 #332AB9 #534AD6 #827CE1

Accessibility & contrast

On white

9.67
#332AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#332AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AB9
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB9#FFFFFF#000000##FFFFFF
##332AB91.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #332ab9;
/* rgb */ color: rgb(51, 42, 185);
/* oklch */ color: oklch(41.0% 0.211 274.5);
Tailwind
colors: {
  custom: {
    50: '#8067cf',
    500: '#332ab9',
    950: '#000000',
  },
}
SCSS
$custom: #332ab9;
$custom-light: #8067cf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab9",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 243.776,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40979,
    "c": 0.2114,
    "h": 274.5
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#332AB9
secondary
#C4CA75
accent
#E642DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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