#332ED7#332ED7

#332ED7 is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.7% C 0.243 H 272.0°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#332ED7
RGBrgb(51, 46, 215)
HSLhsl(242, 68%, 51%)
HSVhsv(242, 79%, 84%)
CMYKcmyk(76.3%, 78.6%, 0%, 15.7%)
CIE-LABlab(33.05, 56.36, -83.80)
CIE-LCHlch(33.05, 100.99, 303.92°)
OKLaboklab(44.74% 0.0086 -0.2425)
OKLCHoklch(44.74% 0.243 272)
XYZxyz(14.6039, 7.5625, 64.9668)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332ED7 #D2D72E
analogous
#2E7DD7 #332ED7 #872ED7
triadic
#332ED7 #D7332E #2ED733
tetradic
#332ED7 #D72E7D #D2D72E #2ED787
square
#332ED7 #D72E7D #D2D72E #2ED787
split-complementary
#332ED7 #D7872E #7DD72E
monochromatic
#191674 #2420A8 #332ED7 #6561E1 #9795EB

Accessibility & contrast

On white

8.36
#332ED7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#332ED7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332ED7
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332ED7#FFFFFF#000000##FFFFFF
##332ED71.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056DC
Deuteranopia (green-blind)
#0045D4
Tritanopia (blue-blind)
#006283
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #332ed7;
/* rgb */ color: rgb(51, 46, 215);
/* oklch */ color: oklch(44.7% 0.243 272.0);
Tailwind
colors: {
  custom: {
    50: '#866be5',
    500: '#332ed7',
    950: '#000000',
  },
}
SCSS
$custom: #332ed7;
$custom-light: #866be5;
$custom-dark: #000000;
JSON
{
  "hex": "#332ed7",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 241.775,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.44739,
    "c": 0.24268,
    "h": 272
  },
  "luminance": 0.07564
}

Semantic roles & 50–950 ramp

primary
#332ED7
secondary
#D4D68B
accent
#EB3DE6
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #332ED7

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

Preview Lab → · Contrast checker → · Palette generator →

#332ED7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva