#332D9B#332D9B

#332D9B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.171 H 277.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#332D9B
RGBrgb(51, 45, 155)
HSLhsl(243, 55%, 39%)
HSVhsv(243, 71%, 61%)
CMYKcmyk(67.1%, 71%, 0%, 39.2%)
CIE-LABlab(26.58, 37.56, -58.90)
CIE-LCHlch(26.58, 69.85, 302.52°)
OKLaboklab(38.3% 0.0209 -0.17)
OKLCHoklch(38.3% 0.171 277)
XYZxyz(8.2181, 4.9464, 31.5257)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D9B #959B2D
analogous
#2D5E9B #332D9B #6A2D9B
triadic
#332D9B #9B332D #2D9B33
tetradic
#332D9B #9B2D5E #959B2D #2D9B6A
square
#332D9B #9B2D5E #959B2D #2D9B6A
split-complementary
#332D9B #9B6A2D #5E9B2D
monochromatic
#14113C #231F6C #332D9B #463EC7 #736ED5

Accessibility & contrast

On white

10.56
#332D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#332D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D9B
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D9B#FFFFFF#000000##FFFFFF
##332D9B1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332d9b;
/* rgb */ color: rgb(51, 45, 155);
/* oklch */ color: oklch(38.3% 0.171 277.0);
Tailwind
colors: {
  custom: {
    50: '#7967ba',
    500: '#332d9b',
    950: '#000000',
  },
}
SCSS
$custom: #332d9b;
$custom-light: #7967ba;
$custom-dark: #000000;
JSON
{
  "hex": "#332d9b",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 243.273,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38301,
    "c": 0.17132,
    "h": 277
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#332D9B
secondary
#B7BC68
accent
#DE49D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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