#332B89#332B89

#332B89 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.150 H 279.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#332B89
RGBrgb(51, 43, 137)
HSLhsl(245, 52%, 35%)
HSVhsv(245, 69%, 54%)
CMYKcmyk(62.8%, 68.6%, 0%, 46.3%)
CIE-LABlab(24.44, 32.67, -51.30)
CIE-LCHlch(24.44, 60.82, 302.50°)
OKLaboklab(36.24% 0.0251 -0.1478)
OKLCHoklch(36.24% 0.15 279.7)
XYZxyz(6.7430, 4.2372, 24.1246)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B89 #81892B
analogous
#2B5289 #332B89 #622B89
triadic
#332B89 #89332B #2B8933
tetradic
#332B89 #892B52 #81892B #2B8962
square
#332B89 #892B52 #81892B #2B8962
split-complementary
#332B89 #89622B #52892B
monochromatic
#100E2C #221C5A #332B89 #443AB8 #6A61CD

Accessibility & contrast

On white

11.37
#332B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#332B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B89
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B89#FFFFFF#000000##FFFFFF
##332B891.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003687
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332b89;
/* rgb */ color: rgb(51, 43, 137);
/* oklch */ color: oklch(36.2% 0.150 279.7);
Tailwind
colors: {
  custom: {
    50: '#7565ac',
    500: '#332b89',
    950: '#000000',
  },
}
SCSS
$custom: #332b89;
$custom-light: #7565ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332b89",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 137
  },
  "hsl": {
    "h": 245.106,
    "s": 52.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36242,
    "c": 0.14992,
    "h": 279.7
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#332B89
secondary
#ACB35C
accent
#DC4CCF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332B89

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

Preview Lab → · Contrast checker → · Palette generator →

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