#332A8B#332A8B

#332A8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.154 H 279.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#332A8B
RGBrgb(51, 42, 139)
HSLhsl(246, 54%, 35%)
HSVhsv(246, 70%, 55%)
CMYKcmyk(63.3%, 69.8%, 0%, 45.5%)
CIE-LABlab(24.40, 33.97, -52.62)
CIE-LCHlch(24.40, 62.63, 302.85°)
OKLaboklab(36.27% 0.0257 -0.1517)
OKLCHoklch(36.27% 0.154 279.6)
XYZxyz(6.8519, 4.2233, 24.8752)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A8B #828B2A
analogous
#2A518B #332A8B #632A8B
triadic
#332A8B #8B332A #2A8B33
tetradic
#332A8B #8B2A51 #828B2A #2A8B63
square
#332A8B #8B2A51 #828B2A #2A8B63
split-complementary
#332A8B #8B632A #518B2A
monochromatic
#110E2D #221C5C #332A8B #4438BA #6B60CF

Accessibility & contrast

On white

11.38
#332A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#332A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A8B
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A8B#FFFFFF#000000##FFFFFF
##332A8B1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332a8b;
/* rgb */ color: rgb(51, 42, 139);
/* oklch */ color: oklch(36.3% 0.154 279.6);
Tailwind
colors: {
  custom: {
    50: '#7664ae',
    500: '#332a8b',
    950: '#000000',
  },
}
SCSS
$custom: #332a8b;
$custom-light: #7664ae;
$custom-dark: #000000;
JSON
{
  "hex": "#332a8b",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 245.567,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36266,
    "c": 0.15382,
    "h": 279.6
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#332A8B
secondary
#ADB55C
accent
#DD4BCF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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