#332ACC#332ACC

#332ACC is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 43.1% C 0.233 H 273.0°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#332ACC
RGBrgb(51, 42, 204)
HSLhsl(243, 66%, 48%)
HSVhsv(243, 79%, 80%)
CMYKcmyk(75%, 79.4%, 0%, 20%)
CIE-LABlab(31.16, 54.94, -80.56)
CIE-LCHlch(31.16, 97.51, 304.29°)
OKLaboklab(43.06% 0.0123 -0.2331)
OKLCHoklch(43.06% 0.233 273)
XYZxyz(13.0886, 6.7180, 57.7219)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332ACC #C3CC2A
analogous
#2A72CC #332ACC #842ACC
triadic
#332ACC #CC332A #2ACC33
tetradic
#332ACC #CC2A72 #C3CC2A #2ACC84
square
#332ACC #CC2A72 #C3CC2A #2ACC84
split-complementary
#332ACC #CC842A #72CC2A
monochromatic
#1A1566 #262099 #332ACC #5E57DC #8F8AE7

Accessibility & contrast

On white

8.96
#332ACC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#332ACC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332ACC
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332ACC#FFFFFF#000000##FFFFFF
##332ACC1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051D0
Deuteranopia (green-blind)
#0041C9
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #332acc;
/* rgb */ color: rgb(51, 42, 204);
/* oklch */ color: oklch(43.1% 0.233 273.0);
Tailwind
colors: {
  custom: {
    50: '#8468dd',
    500: '#332acc',
    950: '#000000',
  },
}
SCSS
$custom: #332acc;
$custom-light: #8468dd;
$custom-dark: #000000;
JSON
{
  "hex": "#332acc",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 204
  },
  "hsl": {
    "h": 243.333,
    "s": 65.854,
    "l": 48.235
  },
  "oklch": {
    "l": 0.43058,
    "c": 0.23342,
    "h": 273
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

primary
#332ACC
secondary
#CCD181
accent
#E93FDF
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #332ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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