#332C8B#332C8B

#332C8B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.151 H 279.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#332C8B
RGBrgb(51, 44, 139)
HSLhsl(244, 52%, 36%)
HSVhsv(244, 68%, 55%)
CMYKcmyk(63.3%, 68.3%, 0%, 45.5%)
CIE-LABlab(24.85, 32.73, -51.86)
CIE-LCHlch(24.85, 61.33, 302.25°)
OKLaboklab(36.6% 0.024 -0.1495)
OKLCHoklch(36.6% 0.151 279.1)
XYZxyz(6.9246, 4.3687, 24.8994)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C8B #848B2C
analogous
#2C548B #332C8B #622C8B
triadic
#332C8B #8B332C #2C8B33
tetradic
#332C8B #8B2C54 #848B2C #2C8B62
square
#332C8B #8B2C54 #848B2C #2C8B62
split-complementary
#332C8B #8B622C #548B2C
monochromatic
#110F2E #221D5D #332C8B #443BB9 #6B64CE

Accessibility & contrast

On white

11.21
#332C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#332C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C8B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C8B#FFFFFF#000000##FFFFFF
##332C8B1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332c8b;
/* rgb */ color: rgb(51, 44, 139);
/* oklch */ color: oklch(36.6% 0.151 279.1);
Tailwind
colors: {
  custom: {
    50: '#7666ae',
    500: '#332c8b',
    950: '#000000',
  },
}
SCSS
$custom: #332c8b;
$custom-light: #7666ae;
$custom-dark: #000000;
JSON
{
  "hex": "#332c8b",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 244.421,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36597,
    "c": 0.15138,
    "h": 279.1
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#332C8B
secondary
#AEB45F
accent
#DB4CD1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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