#332BA1#332BA1

#332BA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.181 H 276.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#332BA1
RGBrgb(51, 43, 161)
HSLhsl(244, 58%, 40%)
HSVhsv(244, 73%, 63%)
CMYKcmyk(68.3%, 73.3%, 0%, 36.9%)
CIE-LABlab(26.75, 40.74, -62.28)
CIE-LCHlch(26.75, 74.42, 303.19°)
OKLaboklab(38.6% 0.0212 -0.1799)
OKLCHoklch(38.6% 0.181 276.7)
XYZxyz(8.6600, 5.0040, 34.2208)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BA1 #99A12B
analogous
#2B5EA1 #332BA1 #6E2BA1
triadic
#332BA1 #A1332B #2BA133
tetradic
#332BA1 #A12B5E #99A12B #2BA16E
square
#332BA1 #A12B5E #99A12B #2BA16E
split-complementary
#332BA1 #A16E2B #5EA12B
monochromatic
#141140 #241E71 #332BA1 #473ECB #756ED8

Accessibility & contrast

On white

10.49
#332BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#332BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332BA1
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BA1#FFFFFF#000000##FFFFFF
##332BA11.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332ba1;
/* rgb */ color: rgb(51, 43, 161);
/* oklch */ color: oklch(38.6% 0.181 276.7);
Tailwind
colors: {
  custom: {
    50: '#7a66be',
    500: '#332ba1',
    950: '#000000',
  },
}
SCSS
$custom: #332ba1;
$custom-light: #7a66be;
$custom-dark: #000000;
JSON
{
  "hex": "#332ba1",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 244.068,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.38597,
    "c": 0.18116,
    "h": 276.7
  },
  "luminance": 0.05005
}

Semantic roles & 50–950 ramp

primary
#332BA1
secondary
#B9BF69
accent
#E147D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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