#332A82#332A82

#332A82 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.142 H 281.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#332A82
RGBrgb(51, 42, 130)
HSLhsl(246, 51%, 34%)
HSVhsv(246, 68%, 51%)
CMYKcmyk(60.8%, 67.7%, 0%, 49%)
CIE-LABlab(23.58, 30.92, -48.33)
CIE-LCHlch(23.58, 57.37, 302.61°)
OKLaboklab(35.42% 0.0269 -0.1391)
OKLCHoklch(35.42% 0.142 281)
XYZxyz(6.2212, 3.9710, 21.5534)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A82 #79822A
analogous
#2A4D82 #332A82 #5F2A82
triadic
#332A82 #82332A #2A8233
tetradic
#332A82 #822A4D #79822A #2A825F
square
#332A82 #822A4D #79822A #2A825F
split-complementary
#332A82 #825F2A #4D822A
monochromatic
#0F0C25 #211B54 #332A82 #4539B0 #675CCA

Accessibility & contrast

On white

11.70
#332A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A82
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A82#FFFFFF#000000##FFFFFF
##332A821.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332a82;
/* rgb */ color: rgb(51, 42, 130);
/* oklch */ color: oklch(35.4% 0.142 281.0);
Tailwind
colors: {
  custom: {
    50: '#7464a7',
    500: '#332a82',
    950: '#000000',
  },
}
SCSS
$custom: #332a82;
$custom-light: #7464a7;
$custom-dark: #000000;
JSON
{
  "hex": "#332a82",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 246.136,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3542,
    "c": 0.14166,
    "h": 281
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#332A82
secondary
#A7B058
accent
#DB4DCC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332A82

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

Preview Lab → · Contrast checker → · Palette generator →

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