#332D82#332D82

#332D82 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.138 H 280.1°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#332D82
RGBrgb(51, 45, 130)
HSLhsl(244, 49%, 34%)
HSVhsv(244, 65%, 51%)
CMYKcmyk(60.8%, 65.4%, 0%, 49%)
CIE-LABlab(24.30, 29.00, -47.15)
CIE-LCHlch(24.30, 55.36, 301.59°)
OKLaboklab(35.94% 0.0241 -0.1356)
OKLCHoklch(35.94% 0.138 280.1)
XYZxyz(6.3316, 4.1918, 21.5902)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D82 #7C822D
analogous
#2D5282 #332D82 #5E2D82
triadic
#332D82 #82332D #2D8233
tetradic
#332D82 #822D52 #7C822D #2D825E
square
#332D82 #822D52 #7C822D #2D825E
split-complementary
#332D82 #825E2D #52822D
monochromatic
#0F0E27 #211D55 #332D82 #453DAF #6861C8

Accessibility & contrast

On white

11.42
#332D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332D82
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D82#FFFFFF#000000##FFFFFF
##332D821.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003680
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332d82;
/* rgb */ color: rgb(51, 45, 130);
/* oklch */ color: oklch(35.9% 0.138 280.1);
Tailwind
colors: {
  custom: {
    50: '#7466a7',
    500: '#332d82',
    950: '#000000',
  },
}
SCSS
$custom: #332d82;
$custom-light: #7466a7;
$custom-dark: #000000;
JSON
{
  "hex": "#332d82",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 244.235,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35944,
    "c": 0.13774,
    "h": 280.1
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#332D82
secondary
#A9AF5C
accent
#D850CF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #332D82

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

Preview Lab → · Contrast checker → · Palette generator →

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