#332A88#332A88

#332A88 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.150 H 280.0°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#332A88
RGBrgb(51, 42, 136)
HSLhsl(246, 53%, 35%)
HSVhsv(246, 69%, 53%)
CMYKcmyk(62.5%, 69.1%, 0%, 46.7%)
CIE-LABlab(24.12, 32.96, -51.20)
CIE-LCHlch(24.12, 60.89, 302.77°)
OKLaboklab(35.98% 0.0261 -0.1475)
OKLCHoklch(35.98% 0.15 280)
XYZxyz(6.6357, 4.1368, 23.7366)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A88 #7F882A
analogous
#2A5088 #332A88 #622A88
triadic
#332A88 #88332A #2A8833
tetradic
#332A88 #882A50 #7F882A #2A8862
square
#332A88 #882A50 #7F882A #2A8862
split-complementary
#332A88 #88622A #50882A
monochromatic
#100D2A #211C59 #332A88 #4538B7 #695FCE

Accessibility & contrast

On white

11.49
#332A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#332A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A88
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A88#FFFFFF#000000##FFFFFF
##332A881.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332a88;
/* rgb */ color: rgb(51, 42, 136);
/* oklch */ color: oklch(36.0% 0.150 280.0);
Tailwind
colors: {
  custom: {
    50: '#7564ac',
    500: '#332a88',
    950: '#000000',
  },
}
SCSS
$custom: #332a88;
$custom-light: #7564ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332a88",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 245.745,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.14981,
    "h": 280
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#332A88
secondary
#ABB35B
accent
#DC4CCE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332A88

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

Preview Lab → · Contrast checker → · Palette generator →

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