#332B9D#332B9D

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

Color values

HEX#332B9D
RGBrgb(51, 43, 157)
HSLhsl(244, 57%, 39%)
HSVhsv(244, 73%, 62%)
CMYKcmyk(67.5%, 72.6%, 0%, 38.4%)
CIE-LABlab(26.35, 39.41, -60.50)
CIE-LCHlch(26.35, 72.21, 303.08°)
OKLaboklab(38.19% 0.0219 -0.1747)
OKLCHoklch(38.19% 0.176 277.1)
XYZxyz(8.3129, 4.8652, 32.3927)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B9D #959D2B
analogous
#2B5C9D #332B9D #6C2B9D
triadic
#332B9D #9D332B #2B9D33
tetradic
#332B9D #9D2B5C #959D2B #2B9D6C
square
#332B9D #9D2B5C #959D2B #2B9D6C
split-complementary
#332B9D #9D6C2B #5C9D2B
monochromatic
#14113D #231E6D #332B9D #463CCA #736CD7

Accessibility & contrast

On white

10.64
#332B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#332B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B9D
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B9D#FFFFFF#000000##FFFFFF
##332B9D1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #332b9d;
/* rgb */ color: rgb(51, 43, 157);
/* oklch */ color: oklch(38.2% 0.176 277.1);
Tailwind
colors: {
  custom: {
    50: '#7966bb',
    500: '#332b9d',
    950: '#000000',
  },
}
SCSS
$custom: #332b9d;
$custom-light: #7966bb;
$custom-dark: #000000;
JSON
{
  "hex": "#332b9d",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 244.211,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38192,
    "c": 0.1761,
    "h": 277.1
  },
  "luminance": 0.04866
}

Semantic roles & 50–950 ramp

primary
#332B9D
secondary
#B7BD66
accent
#E048D6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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