#332488#332488

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

Color values

HEX#332488
RGBrgb(51, 36, 136)
HSLhsl(249, 58%, 34%)
HSVhsv(249, 74%, 53%)
CMYKcmyk(62.5%, 73.5%, 0%, 46.7%)
CIE-LABlab(22.80, 36.58, -53.36)
CIE-LCHlch(22.80, 64.69, 304.43°)
OKLaboklab(35.04% 0.0311 -0.1538)
OKLCHoklch(35.04% 0.157 281.4)
XYZxyz(6.4387, 3.7427, 23.6709)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332488 #798824
analogous
#244788 #332488 #652488
triadic
#332488 #883324 #248833
tetradic
#332488 #882447 #798824 #248865
square
#332488 #882447 #798824 #248865
split-complementary
#332488 #886524 #478824
monochromatic
#0F0A27 #211758 #332488 #4531B8 #6755D2

Accessibility & contrast

On white

12.01
#332488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332488
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332488#FFFFFF#000000##FFFFFF
##3324881.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332488;
/* rgb */ color: rgb(51, 36, 136);
/* oklch */ color: oklch(35.0% 0.157 281.4);
Tailwind
colors: {
  custom: {
    50: '#7660ac',
    500: '#332488',
    950: '#000000',
  },
}
SCSS
$custom: #332488;
$custom-light: #7660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332488",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 249,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35037,
    "c": 0.15693,
    "h": 281.4
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#332488
secondary
#A7B652
accent
#E146CA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332488

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

Preview Lab → · Contrast checker → · Palette generator →

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