#332399#332399

#332399 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.179 H 278.9°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#332399
RGBrgb(51, 35, 153)
HSLhsl(248, 63%, 37%)
HSVhsv(248, 77%, 60%)
CMYKcmyk(66.7%, 77.1%, 0%, 40%)
CIE-LABlab(24.34, 42.61, -61.36)
CIE-LCHlch(24.34, 74.71, 304.78°)
OKLaboklab(36.65% 0.0279 -0.1772)
OKLCHoklch(36.65% 0.179 278.9)
XYZxyz(7.7142, 4.2051, 30.5360)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332399 #899923
analogous
#234E99 #332399 #6E2399
triadic
#332399 #993323 #239933
tetradic
#332399 #99234E #899923 #23996E
square
#332399 #99234E #899923 #23996E
split-complementary
#332399 #996E23 #4E9923
monochromatic
#120C35 #221867 #332399 #442ECB #6E5DDA

Accessibility & contrast

On white

11.41
#332399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#332399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332399
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332399#FFFFFF#000000##FFFFFF
##3323991.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332399;
/* rgb */ color: rgb(51, 35, 153);
/* oklch */ color: oklch(36.6% 0.179 278.9);
Tailwind
colors: {
  custom: {
    50: '#7961b8',
    500: '#332399',
    950: '#000000',
  },
}
SCSS
$custom: #332399;
$custom-light: #7961b8;
$custom-dark: #000000;
JSON
{
  "hex": "#332399",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 248.136,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36646,
    "c": 0.17938,
    "h": 278.9
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

primary
#332399
secondary
#B1BE59
accent
#E642D0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #332399

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

Preview Lab → · Contrast checker → · Palette generator →

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