#332AB5#332AB5

#332AB5 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.207 H 274.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#332AB5
RGBrgb(51, 42, 181)
HSLhsl(244, 62%, 44%)
HSVhsv(244, 77%, 71%)
CMYKcmyk(71.8%, 76.8%, 0%, 29%)
CIE-LABlab(28.63, 47.78, -71.20)
CIE-LCHlch(28.63, 85.74, 303.87°)
OKLaboklab(40.55% 0.0175 -0.2059)
OKLCHoklch(40.55% 0.207 274.9)
XYZxyz(10.5309, 5.6949, 44.2513)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB5 #ACB52A
analogous
#2A66B5 #332AB5 #782AB5
triadic
#332AB5 #B5332A #2AB533
tetradic
#332AB5 #B52A66 #ACB52A #2AB578
square
#332AB5 #B52A66 #ACB52A #2AB578
split-complementary
#332AB5 #B5782A #66B52A
monochromatic
#171352 #251E83 #332AB5 #5148D4 #8079E0

Accessibility & contrast

On white

9.82
#332AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#332AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AB5
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB5#FFFFFF#000000##FFFFFF
##332AB51.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB9
Deuteranopia (green-blind)
#003DB3
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332ab5;
/* rgb */ color: rgb(51, 42, 181);
/* oklch */ color: oklch(40.5% 0.207 274.9);
Tailwind
colors: {
  custom: {
    50: '#7f66cd',
    500: '#332ab5',
    950: '#000000',
  },
}
SCSS
$custom: #332ab5;
$custom-light: #7f66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab5",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 243.885,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40549,
    "c": 0.20664,
    "h": 274.9
  },
  "luminance": 0.05696
}

Semantic roles & 50–950 ramp

primary
#332AB5
secondary
#C2C873
accent
#E542DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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