#332289#332289

#332289 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.160 H 281.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#332289
RGBrgb(51, 34, 137)
HSLhsl(250, 60%, 34%)
HSVhsv(250, 75%, 54%)
CMYKcmyk(62.8%, 75.2%, 0%, 46.3%)
CIE-LABlab(22.49, 38.05, -54.49)
CIE-LCHlch(22.49, 66.46, 304.92°)
OKLaboklab(34.85% 0.0324 -0.1571)
OKLCHoklch(34.85% 0.16 281.7)
XYZxyz(6.4512, 3.6535, 24.0273)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332289 #788922
analogous
#224489 #332289 #662289
triadic
#332289 #893322 #228933
tetradic
#332289 #892244 #788922 #228966
square
#332289 #892244 #788922 #228966
split-complementary
#332289 #896622 #448922
monochromatic
#0E0A27 #211658 #332289 #452EBA #6751D4

Accessibility & contrast

On white

12.13
#332289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#332289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332289
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332289#FFFFFF#000000##FFFFFF
##3322891.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332289;
/* rgb */ color: rgb(51, 34, 137);
/* oklch */ color: oklch(34.8% 0.160 281.7);
Tailwind
colors: {
  custom: {
    50: '#765fac',
    500: '#332289',
    950: '#000000',
  },
}
SCSS
$custom: #332289;
$custom-light: #765fac;
$custom-dark: #000000;
JSON
{
  "hex": "#332289",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 249.903,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34847,
    "c": 0.16045,
    "h": 281.7
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#332289
secondary
#A6B84F
accent
#E344C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332289

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

Preview Lab → · Contrast checker → · Palette generator →

#332289 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva