#332389#332389

#332389 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.159 H 281.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#332389
RGBrgb(51, 35, 137)
HSLhsl(249, 59%, 34%)
HSVhsv(249, 74%, 54%)
CMYKcmyk(62.8%, 74.5%, 0%, 46.3%)
CIE-LABlab(22.69, 37.48, -54.16)
CIE-LCHlch(22.69, 65.86, 304.68°)
OKLaboklab(34.99% 0.0317 -0.1562)
OKLCHoklch(34.99% 0.159 281.5)
XYZxyz(6.4802, 3.7115, 24.0370)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332389 #798923
analogous
#234689 #332389 #662389
triadic
#332389 #893323 #238933
tetradic
#332389 #892346 #798923 #238966
square
#332389 #892346 #798923 #238966
split-complementary
#332389 #896623 #468923
monochromatic
#0F0A28 #211758 #332389 #452FBA #6753D3

Accessibility & contrast

On white

12.05
#332389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#332389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332389
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332389#FFFFFF#000000##FFFFFF
##3323891.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332389;
/* rgb */ color: rgb(51, 35, 137);
/* oklch */ color: oklch(35.0% 0.159 281.5);
Tailwind
colors: {
  custom: {
    50: '#7660ac',
    500: '#332389',
    950: '#000000',
  },
}
SCSS
$custom: #332389;
$custom-light: #7660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332389",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 137
  },
  "hsl": {
    "h": 249.412,
    "s": 59.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34991,
    "c": 0.15935,
    "h": 281.5
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#332389
secondary
#A7B751
accent
#E245CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332389

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

Preview Lab → · Contrast checker → · Palette generator →

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