#332099#332099

#332099 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.182 H 279.3°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#332099
RGBrgb(51, 32, 153)
HSLhsl(249, 65%, 36%)
HSVhsv(249, 79%, 60%)
CMYKcmyk(66.7%, 79.1%, 0%, 40%)
CIE-LABlab(23.79, 44.18, -62.27)
CIE-LCHlch(23.79, 76.35, 305.35°)
OKLaboklab(36.26% 0.0296 -0.1798)
OKLCHoklch(36.26% 0.182 279.3)
XYZxyz(7.6297, 4.0361, 30.5078)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332099 #869920
analogous
#204A99 #332099 #702099
triadic
#332099 #993320 #209933
tetradic
#332099 #99204A #869920 #209970
square
#332099 #99204A #869920 #209970
split-complementary
#332099 #997020 #4A9920
monochromatic
#110B34 #221566 #332099 #442BCC #6C57DC

Accessibility & contrast

On white

11.62
#332099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#332099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332099
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332099#FFFFFF#000000##FFFFFF
##3320991.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332099;
/* rgb */ color: rgb(51, 32, 153);
/* oklch */ color: oklch(36.3% 0.182 279.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fb8',
    500: '#332099',
    950: '#000000',
  },
}
SCSS
$custom: #332099;
$custom-light: #7a5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#332099",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 249.421,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36263,
    "c": 0.18222,
    "h": 279.3
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#332099
secondary
#AFC055
accent
#E83FCE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #332099

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

Preview Lab → · Contrast checker → · Palette generator →

#332099 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva