#332D99#332D99

#332D99 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.169 H 277.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#332D99
RGBrgb(51, 45, 153)
HSLhsl(243, 55%, 39%)
HSVhsv(243, 71%, 60%)
CMYKcmyk(66.7%, 70.6%, 0%, 40%)
CIE-LABlab(26.39, 36.88, -57.99)
CIE-LCHlch(26.39, 68.72, 302.46°)
OKLaboklab(38.1% 0.0212 -0.1674)
OKLCHoklch(38.1% 0.169 277.2)
XYZxyz(8.0515, 4.8798, 30.6484)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D99 #93992D
analogous
#2D5D99 #332D99 #692D99
triadic
#332D99 #99332D #2D9933
tetradic
#332D99 #992D5D #93992D #2D9969
square
#332D99 #992D5D #93992D #2D9969
split-complementary
#332D99 #99692D #5D992D
monochromatic
#13113A #231F6A #332D99 #453DC6 #726CD4

Accessibility & contrast

On white

10.63
#332D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#332D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D99
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D99#FFFFFF#000000##FFFFFF
##332D991.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #332d99;
/* rgb */ color: rgb(51, 45, 153);
/* oklch */ color: oklch(38.1% 0.169 277.2);
Tailwind
colors: {
  custom: {
    50: '#7867b8',
    500: '#332d99',
    950: '#000000',
  },
}
SCSS
$custom: #332d99;
$custom-light: #7867b8;
$custom-dark: #000000;
JSON
{
  "hex": "#332d99",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 243.333,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38104,
    "c": 0.16873,
    "h": 277.2
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#332D99
secondary
#B6BB67
accent
#DE4AD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332D99

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

Preview Lab → · Contrast checker → · Palette generator →

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