#332AA6#332AA6

#332AA6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.188 H 276.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#332AA6
RGBrgb(51, 42, 166)
HSLhsl(244, 60%, 41%)
HSVhsv(244, 75%, 65%)
CMYKcmyk(69.3%, 74.7%, 0%, 34.9%)
CIE-LABlab(27.05, 42.95, -64.80)
CIE-LCHlch(27.05, 77.75, 303.54°)
OKLaboklab(38.97% 0.0208 -0.1873)
OKLCHoklch(38.97% 0.188 276.3)
XYZxyz(9.0739, 5.1121, 36.5775)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AA6 #9DA62A
analogous
#2A5FA6 #332AA6 #712AA6
triadic
#332AA6 #A6332A #2AA633
tetradic
#332AA6 #A62A5F #9DA62A #2AA671
square
#332AA6 #A62A5F #9DA62A #2AA671
split-complementary
#332AA6 #A6712A #5FA62A
monochromatic
#151144 #241E75 #332AA6 #493FCE #7770DB

Accessibility & contrast

On white

10.38
#332AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#332AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AA6
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AA6#FFFFFF#000000##FFFFFF
##332AA61.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332aa6;
/* rgb */ color: rgb(51, 42, 166);
/* oklch */ color: oklch(39.0% 0.188 276.3);
Tailwind
colors: {
  custom: {
    50: '#7c66c2',
    500: '#332aa6',
    950: '#000000',
  },
}
SCSS
$custom: #332aa6;
$custom-light: #7c66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#332aa6",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 244.355,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38967,
    "c": 0.18844,
    "h": 276.3
  },
  "luminance": 0.05113
}

Semantic roles & 50–950 ramp

primary
#332AA6
secondary
#BBC26A
accent
#E345D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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