#332C9C#332C9C

#332C9C is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.174 H 277.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#332C9C
RGBrgb(51, 44, 156)
HSLhsl(244, 56%, 39%)
HSVhsv(244, 72%, 61%)
CMYKcmyk(67.3%, 71.8%, 0%, 38.8%)
CIE-LABlab(26.46, 38.49, -59.70)
CIE-LCHlch(26.46, 71.03, 302.81°)
OKLaboklab(38.24% 0.0214 -0.1724)
OKLCHoklch(38.24% 0.174 277.1)
XYZxyz(8.2647, 4.9048, 31.9572)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C9C #959C2C
analogous
#2C5D9C #332C9C #6B2C9C
triadic
#332C9C #9C332C #2C9C33
tetradic
#332C9C #9C2C5D #959C2C #2C9C6B
square
#332C9C #9C2C5D #959C2C #2C9C6B
split-complementary
#332C9C #9C6B2C #5D9C2C
monochromatic
#14113D #231F6C #332C9C #463DC8 #736DD6

Accessibility & contrast

On white

10.60
#332C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332C9C
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C9C#FFFFFF#000000##FFFFFF
##332C9C1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332c9c;
/* rgb */ color: rgb(51, 44, 156);
/* oklch */ color: oklch(38.2% 0.174 277.1);
Tailwind
colors: {
  custom: {
    50: '#7966ba',
    500: '#332c9c',
    950: '#000000',
  },
}
SCSS
$custom: #332c9c;
$custom-light: #7966ba;
$custom-dark: #000000;
JSON
{
  "hex": "#332c9c",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 243.75,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38244,
    "c": 0.17372,
    "h": 277.1
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#332C9C
secondary
#B7BD67
accent
#DF49D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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