#332489#332489

#332489 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.158 H 281.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#332489
RGBrgb(51, 36, 137)
HSLhsl(249, 58%, 34%)
HSVhsv(249, 74%, 54%)
CMYKcmyk(62.8%, 73.7%, 0%, 46.3%)
CIE-LABlab(22.90, 36.90, -53.82)
CIE-LCHlch(22.90, 65.26, 304.44°)
OKLaboklab(35.14% 0.0309 -0.1552)
OKLCHoklch(35.14% 0.158 281.3)
XYZxyz(6.5101, 3.7712, 24.0469)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332489 #7A8924
analogous
#244889 #332489 #662489
triadic
#332489 #893324 #248933
tetradic
#332489 #892448 #7A8924 #248966
square
#332489 #892448 #7A8924 #248966
split-complementary
#332489 #896624 #488924
monochromatic
#0F0B28 #211759 #332489 #4531B9 #6855D2

Accessibility & contrast

On white

11.97
#332489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#332489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332489
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332489#FFFFFF#000000##FFFFFF
##3324891.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332489;
/* rgb */ color: rgb(51, 36, 137);
/* oklch */ color: oklch(35.1% 0.158 281.3);
Tailwind
colors: {
  custom: {
    50: '#7660ac',
    500: '#332489',
    950: '#000000',
  },
}
SCSS
$custom: #332489;
$custom-light: #7660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332489",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 248.911,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35137,
    "c": 0.15822,
    "h": 281.3
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#332489
secondary
#A8B752
accent
#E246CB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332489

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

Preview Lab → · Contrast checker → · Palette generator →

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