#332AB4#332AB4

#332AB4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.4% C 0.205 H 275.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#332AB4
RGBrgb(51, 42, 180)
HSLhsl(244, 62%, 44%)
HSVhsv(244, 77%, 71%)
CMYKcmyk(71.7%, 76.7%, 0%, 29.4%)
CIE-LABlab(28.52, 47.46, -70.78)
CIE-LCHlch(28.52, 85.22, 303.84°)
OKLaboklab(40.44% 0.0177 -0.2047)
OKLCHoklch(40.44% 0.205 275)
XYZxyz(10.4287, 5.6540, 43.7129)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB4 #ABB42A
analogous
#2A66B4 #332AB4 #782AB4
triadic
#332AB4 #B4332A #2AB433
tetradic
#332AB4 #B42A66 #ABB42A #2AB478
square
#332AB4 #B42A66 #ABB42A #2AB478
split-complementary
#332AB4 #B4782A #66B42A
monochromatic
#171351 #251E82 #332AB4 #5047D4 #7F79E0

Accessibility & contrast

On white

9.85
#332AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#332AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AB4
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB4#FFFFFF#000000##FFFFFF
##332AB41.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332ab4;
/* rgb */ color: rgb(51, 42, 180);
/* oklch */ color: oklch(40.4% 0.205 275.0);
Tailwind
colors: {
  custom: {
    50: '#7f66cc',
    500: '#332ab4',
    950: '#000000',
  },
}
SCSS
$custom: #332ab4;
$custom-light: #7f66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab4",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 243.913,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40442,
    "c": 0.20545,
    "h": 275
  },
  "luminance": 0.05655
}

Semantic roles & 50–950 ramp

primary
#332AB4
secondary
#C2C872
accent
#E543DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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