#332AAB#332AAB

#332AAB is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.5% C 0.195 H 275.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#332AAB
RGBrgb(51, 42, 171)
HSLhsl(244, 61%, 42%)
HSVhsv(244, 75%, 67%)
CMYKcmyk(70.2%, 75.4%, 0%, 32.9%)
CIE-LABlab(27.57, 44.57, -66.96)
CIE-LCHlch(27.57, 80.44, 303.65°)
OKLaboklab(39.49% 0.0197 -0.1936)
OKLCHoklch(39.49% 0.195 275.8)
XYZxyz(9.5415, 5.2991, 39.0402)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AAB #A2AB2A
analogous
#2A62AB #332AAB #742AAB
triadic
#332AAB #AB332A #2AAB33
tetradic
#332AAB #AB2A62 #A2AB2A #2AAB74
square
#332AAB #AB2A62 #A2AB2A #2AAB74
split-complementary
#332AAB #AB742A #62AB2A
monochromatic
#161249 #241E7A #332AAB #4C42D1 #7A73DD

Accessibility & contrast

On white

10.19
#332AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#332AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AAB
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AAB#FFFFFF#000000##FFFFFF
##332AAB1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332aab;
/* rgb */ color: rgb(51, 42, 171);
/* oklch */ color: oklch(39.5% 0.195 275.8);
Tailwind
colors: {
  custom: {
    50: '#7d66c5',
    500: '#332aab',
    950: '#000000',
  },
}
SCSS
$custom: #332aab;
$custom-light: #7d66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#332aab",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 244.186,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39489,
    "c": 0.19458,
    "h": 275.8
  },
  "luminance": 0.053
}

Semantic roles & 50–950 ramp

primary
#332AAB
secondary
#BEC46D
accent
#E444D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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