#332486#332486

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

Color values

HEX#332486
RGBrgb(51, 36, 134)
HSLhsl(249, 58%, 33%)
HSVhsv(249, 73%, 53%)
CMYKcmyk(61.9%, 73.1%, 0%, 47.5%)
CIE-LABlab(22.61, 35.92, -52.43)
CIE-LCHlch(22.61, 63.55, 304.42°)
OKLaboklab(34.84% 0.0315 -0.1511)
OKLCHoklch(34.84% 0.154 281.8)
XYZxyz(6.2978, 3.6864, 22.9293)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332486 #778624
analogous
#244686 #332486 #642486
triadic
#332486 #863324 #248633
tetradic
#332486 #862446 #778624 #248664
square
#332486 #862446 #778624 #248664
split-complementary
#332486 #866424 #468624
monochromatic
#0E0A26 #211756 #332486 #4531B6 #6753D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332486#FFFFFF#000000##FFFFFF
##3324861.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)
#003989
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332486;
/* rgb */ color: rgb(51, 36, 134);
/* oklch */ color: oklch(34.8% 0.154 281.8);
Tailwind
colors: {
  custom: {
    50: '#7560aa',
    500: '#332486',
    950: '#000000',
  },
}
SCSS
$custom: #332486;
$custom-light: #7560aa;
$custom-dark: #000000;
JSON
{
  "hex": "#332486",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 249.184,
    "s": 57.647,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34838,
    "c": 0.15435,
    "h": 281.8
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#332486
secondary
#A6B551
accent
#E147C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332486

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

Preview Lab → · Contrast checker → · Palette generator →

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