#332388#332388

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

Color values

HEX#332388
RGBrgb(51, 35, 136)
HSLhsl(250, 59%, 34%)
HSVhsv(250, 74%, 53%)
CMYKcmyk(62.5%, 74.3%, 0%, 46.7%)
CIE-LABlab(22.59, 37.15, -53.70)
CIE-LCHlch(22.59, 65.30, 304.68°)
OKLaboklab(34.89% 0.0319 -0.1548)
OKLCHoklch(34.89% 0.158 281.6)
XYZxyz(6.4088, 3.6830, 23.6609)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332388 #788823
analogous
#234588 #332388 #652388
triadic
#332388 #883323 #238833
tetradic
#332388 #882345 #788823 #238865
square
#332388 #882345 #788823 #238865
split-complementary
#332388 #886523 #458823
monochromatic
#0E0A27 #211657 #332388 #4530B9 #6753D3

Accessibility & contrast

On white

12.09
#332388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332388
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332388#FFFFFF#000000##FFFFFF
##3323881.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332388;
/* rgb */ color: rgb(51, 35, 136);
/* oklch */ color: oklch(34.9% 0.158 281.6);
Tailwind
colors: {
  custom: {
    50: '#7660ac',
    500: '#332388',
    950: '#000000',
  },
}
SCSS
$custom: #332388;
$custom-light: #7660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332388",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 249.505,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3489,
    "c": 0.15807,
    "h": 281.6
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#332388
secondary
#A6B750
accent
#E246C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332388

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

Preview Lab → · Contrast checker → · Palette generator →

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