#332CA6#332CA6

#332CA6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.186 H 276.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#332CA6
RGBrgb(51, 44, 166)
HSLhsl(243, 58%, 41%)
HSVhsv(243, 73%, 65%)
CMYKcmyk(69.3%, 73.5%, 0%, 34.9%)
CIE-LABlab(27.46, 41.82, -64.14)
CIE-LCHlch(27.46, 76.57, 303.10°)
OKLaboklab(39.25% 0.0196 -0.1853)
OKLCHoklch(39.25% 0.186 276)
XYZxyz(9.1466, 5.2575, 36.6018)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CA6 #9FA62C
analogous
#2C62A6 #332CA6 #702CA6
triadic
#332CA6 #A6332C #2CA633
tetradic
#332CA6 #A62C62 #9FA62C #2CA670
square
#332CA6 #A62C62 #9FA62C #2CA670
split-complementary
#332CA6 #A6702C #62A62C
monochromatic
#151245 #241F76 #332CA6 #4A42CD #7973DA

Accessibility & contrast

On white

10.24
#332CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#332CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332CA6
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332CA6#FFFFFF#000000##FFFFFF
##332CA61.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332ca6;
/* rgb */ color: rgb(51, 44, 166);
/* oklch */ color: oklch(39.3% 0.186 276.0);
Tailwind
colors: {
  custom: {
    50: '#7b67c2',
    500: '#332ca6',
    950: '#000000',
  },
}
SCSS
$custom: #332ca6;
$custom-light: #7b67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#332ca6",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 243.443,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39254,
    "c": 0.18638,
    "h": 276
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

primary
#332CA6
secondary
#BCC16D
accent
#E146D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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