#332BA2#332BA2

#332BA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.182 H 276.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#332BA2
RGBrgb(51, 43, 162)
HSLhsl(244, 58%, 40%)
HSVhsv(244, 73%, 64%)
CMYKcmyk(68.5%, 73.5%, 0%, 36.5%)
CIE-LABlab(26.85, 41.07, -62.72)
CIE-LCHlch(26.85, 74.97, 303.22°)
OKLaboklab(38.7% 0.021 -0.1812)
OKLCHoklch(38.7% 0.182 276.6)
XYZxyz(8.7486, 5.0394, 34.6871)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BA2 #9AA22B
analogous
#2B5EA2 #332BA2 #6F2BA2
triadic
#332BA2 #A2332B #2BA233
tetradic
#332BA2 #A22B5E #9AA22B #2BA26F
square
#332BA2 #A22B5E #9AA22B #2BA26F
split-complementary
#332BA2 #A26F2B #5EA22B
monochromatic
#151141 #241E72 #332BA2 #483ECC #766FD9

Accessibility & contrast

On white

10.46
#332BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#332BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332BA2
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BA2#FFFFFF#000000##FFFFFF
##332BA21.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332ba2;
/* rgb */ color: rgb(51, 43, 162);
/* oklch */ color: oklch(38.7% 0.182 276.6);
Tailwind
colors: {
  custom: {
    50: '#7b66bf',
    500: '#332ba2',
    950: '#000000',
  },
}
SCSS
$custom: #332ba2;
$custom-light: #7b66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ba2",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 244.034,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38699,
    "c": 0.18242,
    "h": 276.6
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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