#332A78#332A78

#332A78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.128 H 282.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#332A78
RGBrgb(51, 42, 120)
HSLhsl(247, 48%, 32%)
HSVhsv(247, 65%, 47%)
CMYKcmyk(57.5%, 65%, 0%, 52.9%)
CIE-LABlab(22.71, 27.51, -43.41)
CIE-LCHlch(22.71, 51.39, 302.36°)
OKLaboklab(34.52% 0.0279 -0.1246)
OKLCHoklch(34.52% 0.128 282.6)
XYZxyz(5.5823, 3.7155, 18.1887)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A78 #6F782A
analogous
#2A4878 #332A78 #5A2A78
triadic
#332A78 #78332A #2A7833
tetradic
#332A78 #782A48 #6F782A #2A785A
square
#332A78 #782A48 #6F782A #2A785A
split-complementary
#332A78 #785A2A #48782A
monochromatic
#0C0A1D #201A4B #332A78 #463AA5 #6458C5

Accessibility & contrast

On white

12.05
#332A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#332A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A78
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A78#FFFFFF#000000##FFFFFF
##332A781.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#123D4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332a78;
/* rgb */ color: rgb(51, 42, 120);
/* oklch */ color: oklch(34.5% 0.128 282.6);
Tailwind
colors: {
  custom: {
    50: '#7264a0',
    500: '#332a78',
    950: '#000000',
  },
}
SCSS
$custom: #332a78;
$custom-light: #7264a0;
$custom-dark: #000000;
JSON
{
  "hex": "#332a78",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 246.923,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34518,
    "c": 0.12774,
    "h": 282.6
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#332A78
secondary
#A0AA54
accent
#D850C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #332A78

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

Preview Lab → · Contrast checker → · Palette generator →

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