#332B87#332B87

#332B87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.147 H 279.9°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#332B87
RGBrgb(51, 43, 135)
HSLhsl(245, 52%, 35%)
HSVhsv(245, 68%, 53%)
CMYKcmyk(62.2%, 68.1%, 0%, 47.1%)
CIE-LABlab(24.26, 31.99, -50.34)
CIE-LCHlch(24.26, 59.65, 302.43°)
OKLaboklab(36.05% 0.0254 -0.145)
OKLCHoklch(36.05% 0.147 279.9)
XYZxyz(6.6009, 4.1804, 23.3760)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B87 #7F872B
analogous
#2B5187 #332B87 #612B87
triadic
#332B87 #87332B #2B8733
tetradic
#332B87 #872B51 #7F872B #2B8761
square
#332B87 #872B51 #7F872B #2B8761
split-complementary
#332B87 #87612B #51872B
monochromatic
#100D2A #211C59 #332B87 #453AB5 #6960CC

Accessibility & contrast

On white

11.44
#332B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#332B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B87
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B87#FFFFFF#000000##FFFFFF
##332B871.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332b87;
/* rgb */ color: rgb(51, 43, 135);
/* oklch */ color: oklch(36.1% 0.147 279.9);
Tailwind
colors: {
  custom: {
    50: '#7565ab',
    500: '#332b87',
    950: '#000000',
  },
}
SCSS
$custom: #332b87;
$custom-light: #7565ab;
$custom-dark: #000000;
JSON
{
  "hex": "#332b87",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 245.217,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36054,
    "c": 0.14721,
    "h": 279.9
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#332B87
secondary
#ABB25B
accent
#DB4DCF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332B87

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

Preview Lab → · Contrast checker → · Palette generator →

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