#332AB3#332AB3

#332AB3 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.3% C 0.204 H 275.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#332AB3
RGBrgb(51, 42, 179)
HSLhsl(244, 62%, 43%)
HSVhsv(244, 77%, 70%)
CMYKcmyk(71.5%, 76.5%, 0%, 29.8%)
CIE-LABlab(28.42, 47.14, -70.36)
CIE-LCHlch(28.42, 84.69, 303.82°)
OKLaboklab(40.34% 0.018 -0.2035)
OKLCHoklch(40.34% 0.204 275)
XYZxyz(10.3272, 5.6134, 43.1783)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB3 #AAB32A
analogous
#2A65B3 #332AB3 #772AB3
triadic
#332AB3 #B3332A #2AB333
tetradic
#332AB3 #B32A65 #AAB32A #2AB377
square
#332AB3 #B32A65 #AAB32A #2AB377
split-complementary
#332AB3 #B3772A #65B32A
monochromatic
#171350 #251E81 #332AB3 #5046D4 #7F78DF

Accessibility & contrast

On white

9.89
#332AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#332AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AB3
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB3#FFFFFF#000000##FFFFFF
##332AB31.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332ab3;
/* rgb */ color: rgb(51, 42, 179);
/* oklch */ color: oklch(40.3% 0.204 275.0);
Tailwind
colors: {
  custom: {
    50: '#7e66cb',
    500: '#332ab3',
    950: '#000000',
  },
}
SCSS
$custom: #332ab3;
$custom-light: #7e66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab3",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 243.942,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40335,
    "c": 0.20425,
    "h": 275
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#332AB3
secondary
#C2C772
accent
#E543DA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #332AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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