#332A8D#332A8D

#332A8D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.156 H 279.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#332A8D
RGBrgb(51, 42, 141)
HSLhsl(245, 54%, 36%)
HSVhsv(245, 70%, 55%)
CMYKcmyk(63.8%, 70.2%, 0%, 44.7%)
CIE-LABlab(24.58, 34.65, -53.55)
CIE-LCHlch(24.58, 63.78, 302.90°)
OKLaboklab(36.46% 0.0254 -0.1544)
OKLCHoklch(36.46% 0.156 279.3)
XYZxyz(6.9994, 4.2823, 25.6519)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A8D #848D2A
analogous
#2A528D #332A8D #642A8D
triadic
#332A8D #8D332A #2A8D33
tetradic
#332A8D #8D2A52 #848D2A #2A8D64
square
#332A8D #8D2A52 #848D2A #2A8D64
split-complementary
#332A8D #8D642A #528D2A
monochromatic
#110E2F #221C5E #332A8D #4438BC #6B61D0

Accessibility & contrast

On white

11.31
#332A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#332A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A8D
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A8D#FFFFFF#000000##FFFFFF
##332A8D1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332a8d;
/* rgb */ color: rgb(51, 42, 141);
/* oklch */ color: oklch(36.5% 0.156 279.3);
Tailwind
colors: {
  custom: {
    50: '#7665af',
    500: '#332a8d',
    950: '#000000',
  },
}
SCSS
$custom: #332a8d;
$custom-light: #7665af;
$custom-dark: #000000;
JSON
{
  "hex": "#332a8d",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 245.455,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36459,
    "c": 0.15648,
    "h": 279.3
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#332A8D
secondary
#AEB65D
accent
#DD4AD0
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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