#332AA1#332AA1

#332AA1 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.182 H 276.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#332AA1
RGBrgb(51, 42, 161)
HSLhsl(245, 59%, 40%)
HSVhsv(245, 74%, 63%)
CMYKcmyk(68.3%, 73.9%, 0%, 36.9%)
CIE-LABlab(26.54, 41.31, -62.62)
CIE-LCHlch(26.54, 75.02, 303.42°)
OKLaboklab(38.45% 0.0218 -0.1809)
OKLCHoklch(38.45% 0.182 276.9)
XYZxyz(8.6241, 4.9322, 34.2088)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AA1 #98A12A
analogous
#2A5CA1 #332AA1 #6F2AA1
triadic
#332AA1 #A1332A #2AA133
tetradic
#332AA1 #A12A5C #98A12A #2AA16F
square
#332AA1 #A12A5C #98A12A #2AA16F
split-complementary
#332AA1 #A16F2A #5CA12A
monochromatic
#141140 #241D70 #332AA1 #473CCC #756DD9

Accessibility & contrast

On white

10.57
#332AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#332AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AA1
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AA1#FFFFFF#000000##FFFFFF
##332AA11.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332aa1;
/* rgb */ color: rgb(51, 42, 161);
/* oklch */ color: oklch(38.5% 0.182 276.9);
Tailwind
colors: {
  custom: {
    50: '#7a65be',
    500: '#332aa1',
    950: '#000000',
  },
}
SCSS
$custom: #332aa1;
$custom-light: #7a65be;
$custom-dark: #000000;
JSON
{
  "hex": "#332aa1",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 244.538,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38451,
    "c": 0.18222,
    "h": 276.9
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#332AA1
secondary
#B9C067
accent
#E246D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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