#332BAB#332BAB

#332BAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.194 H 275.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#332BAB
RGBrgb(51, 43, 171)
HSLhsl(244, 60%, 42%)
HSVhsv(244, 75%, 67%)
CMYKcmyk(70.2%, 74.9%, 0%, 32.9%)
CIE-LABlab(27.77, 44.02, -66.64)
CIE-LCHlch(27.77, 79.87, 303.45°)
OKLaboklab(39.63% 0.0192 -0.1926)
OKLCHoklch(39.63% 0.194 275.7)
XYZxyz(9.5774, 5.3709, 39.0521)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BAB #A3AB2B
analogous
#2B63AB #332BAB #732BAB
triadic
#332BAB #AB332B #2BAB33
tetradic
#332BAB #AB2B63 #A3AB2B #2BAB73
square
#332BAB #AB2B63 #A3AB2B #2BAB73
split-complementary
#332BAB #AB732B #63AB2B
monochromatic
#161249 #241F7A #332BAB #4C43D0 #7B74DC

Accessibility & contrast

On white

10.12
#332BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#332BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332BAB
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BAB#FFFFFF#000000##FFFFFF
##332BAB1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332bab;
/* rgb */ color: rgb(51, 43, 171);
/* oklch */ color: oklch(39.6% 0.194 275.7);
Tailwind
colors: {
  custom: {
    50: '#7d66c5',
    500: '#332bab',
    950: '#000000',
  },
}
SCSS
$custom: #332bab;
$custom-light: #7d66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#332bab",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 243.75,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39627,
    "c": 0.19359,
    "h": 275.7
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#332BAB
secondary
#BEC46E
accent
#E345D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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