#332886#332886

#332886 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.150 H 280.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#332886
RGBrgb(51, 40, 134)
HSLhsl(247, 54%, 34%)
HSVhsv(247, 70%, 53%)
CMYKcmyk(61.9%, 70.1%, 0%, 47.5%)
CIE-LABlab(23.48, 33.52, -50.99)
CIE-LCHlch(23.48, 61.02, 303.32°)
OKLaboklab(35.46% 0.0282 -0.1469)
OKLCHoklch(35.46% 0.15 280.9)
XYZxyz(6.4258, 3.9422, 22.9719)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332886 #7B8628
analogous
#284C86 #332886 #622886
triadic
#332886 #863328 #288633
tetradic
#332886 #86284C #7B8628 #288662
square
#332886 #86284C #7B8628 #288662
split-complementary
#332886 #866228 #4C8628
monochromatic
#0F0C28 #211A57 #332886 #4536B5 #685BCE

Accessibility & contrast

On white

11.74
#332886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332886
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332886#FFFFFF#000000##FFFFFF
##3328861.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332886;
/* rgb */ color: rgb(51, 40, 134);
/* oklch */ color: oklch(35.5% 0.150 280.9);
Tailwind
colors: {
  custom: {
    50: '#7563aa',
    500: '#332886',
    950: '#000000',
  },
}
SCSS
$custom: #332886;
$custom-light: #7563aa;
$custom-dark: #000000;
JSON
{
  "hex": "#332886",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 247.021,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35463,
    "c": 0.14959,
    "h": 280.9
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#332886
secondary
#A8B357
accent
#DD4ACC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332886

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

Preview Lab → · Contrast checker → · Palette generator →

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