#332AB2#332AB2

#332AB2 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.2% C 0.203 H 275.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#332AB2
RGBrgb(51, 42, 178)
HSLhsl(244, 62%, 43%)
HSVhsv(244, 76%, 70%)
CMYKcmyk(71.3%, 76.4%, 0%, 30.2%)
CIE-LABlab(28.31, 46.82, -69.94)
CIE-LCHlch(28.31, 84.17, 303.80°)
OKLaboklab(40.23% 0.0182 -0.2022)
OKLCHoklch(40.23% 0.203 275.1)
XYZxyz(10.2264, 5.5731, 42.6476)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB2 #A9B22A
analogous
#2A65B2 #332AB2 #772AB2
triadic
#332AB2 #B2332A #2AB233
tetradic
#332AB2 #B22A65 #A9B22A #2AB277
square
#332AB2 #B22A65 #A9B22A #2AB277
split-complementary
#332AB2 #B2772A #65B22A
monochromatic
#17134F #251E80 #332AB2 #4F46D3 #7E77DF

Accessibility & contrast

On white

9.93
#332AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#332AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AB2
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB2#FFFFFF#000000##FFFFFF
##332AB21.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332ab2;
/* rgb */ color: rgb(51, 42, 178);
/* oklch */ color: oklch(40.2% 0.203 275.1);
Tailwind
colors: {
  custom: {
    50: '#7e66ca',
    500: '#332ab2',
    950: '#000000',
  },
}
SCSS
$custom: #332ab2;
$custom-light: #7e66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab2",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 243.971,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40229,
    "c": 0.20306,
    "h": 275.1
  },
  "luminance": 0.05574
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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