#332487#332487

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

Color values

HEX#332487
RGBrgb(51, 36, 135)
HSLhsl(249, 58%, 34%)
HSVhsv(249, 73%, 53%)
CMYKcmyk(62.2%, 73.3%, 0%, 47.1%)
CIE-LABlab(22.70, 36.25, -52.89)
CIE-LCHlch(22.70, 64.12, 304.42°)
OKLaboklab(34.94% 0.0313 -0.1525)
OKLCHoklch(34.94% 0.156 281.6)
XYZxyz(6.3679, 3.7144, 23.2984)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332487 #788724
analogous
#244687 #332487 #642487
triadic
#332487 #873324 #248733
tetradic
#332487 #872446 #788724 #248764
square
#332487 #872446 #788724 #248764
split-complementary
#332487 #876424 #468724
monochromatic
#0E0A26 #211757 #332487 #4531B7 #6754D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332487#FFFFFF#000000##FFFFFF
##3324871.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)
#003A8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332487;
/* rgb */ color: rgb(51, 36, 135);
/* oklch */ color: oklch(34.9% 0.156 281.6);
Tailwind
colors: {
  custom: {
    50: '#7560ab',
    500: '#332487',
    950: '#000000',
  },
}
SCSS
$custom: #332487;
$custom-light: #7560ab;
$custom-dark: #000000;
JSON
{
  "hex": "#332487",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 249.091,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.15564,
    "h": 281.6
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#332487
secondary
#A6B551
accent
#E147CA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332487

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

Preview Lab → · Contrast checker → · Palette generator →

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