#332386#332386

#332386 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.155 H 282.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#332386
RGBrgb(51, 35, 134)
HSLhsl(250, 59%, 33%)
HSVhsv(250, 74%, 53%)
CMYKcmyk(61.9%, 73.9%, 0%, 47.5%)
CIE-LABlab(22.40, 36.50, -52.77)
CIE-LCHlch(22.40, 64.17, 304.67°)
OKLaboklab(34.69% 0.0323 -0.1521)
OKLCHoklch(34.69% 0.155 282)
XYZxyz(6.2680, 3.6267, 22.9194)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332386 #768623
analogous
#234486 #332386 #642386
triadic
#332386 #863323 #238633
tetradic
#332386 #862344 #768623 #238664
square
#332386 #862344 #768623 #238664
split-complementary
#332386 #866423 #448623
monochromatic
#0E0A25 #211655 #332386 #4530B7 #6652D2

Accessibility & contrast

On white

12.17
#332386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#332386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332386
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332386#FFFFFF#000000##FFFFFF
##3323861.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #332386;
/* rgb */ color: rgb(51, 35, 134);
/* oklch */ color: oklch(34.7% 0.155 282.0);
Tailwind
colors: {
  custom: {
    50: '#7560aa',
    500: '#332386',
    950: '#000000',
  },
}
SCSS
$custom: #332386;
$custom-light: #7560aa;
$custom-dark: #000000;
JSON
{
  "hex": "#332386",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 249.697,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34689,
    "c": 0.15549,
    "h": 282
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332386

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

Preview Lab → · Contrast checker → · Palette generator →

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