#332EC5#332EC5

#332EC5 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.8% C 0.222 H 273.2°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#332EC5
RGBrgb(51, 46, 197)
HSLhsl(242, 62%, 48%)
HSVhsv(242, 77%, 77%)
CMYKcmyk(74.1%, 76.6%, 0%, 22.7%)
CIE-LABlab(31.09, 50.75, -76.59)
CIE-LCHlch(31.09, 91.88, 303.53°)
OKLaboklab(42.78% 0.0124 -0.2216)
OKLCHoklch(42.78% 0.222 273.2)
XYZxyz(12.4169, 6.6877, 53.4490)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EC5 #C0C52E
analogous
#2E74C5 #332EC5 #7F2EC5
triadic
#332EC5 #C5332E #2EC533
tetradic
#332EC5 #C52E74 #C0C52E #2EC57F
square
#332EC5 #C52E74 #C0C52E #2EC57F
split-complementary
#332EC5 #C57F2E #74C52E
monochromatic
#191762 #262293 #332EC5 #5C58D8 #8D8AE4

Accessibility & contrast

On white

8.98
#332EC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#332EC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EC5
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EC5#FFFFFF#000000##FFFFFF
##332EC51.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C9
Deuteranopia (green-blind)
#0042C2
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #332ec5;
/* rgb */ color: rgb(51, 46, 197);
/* oklch */ color: oklch(42.8% 0.222 273.2);
Tailwind
colors: {
  custom: {
    50: '#826ad8',
    500: '#332ec5',
    950: '#000000',
  },
}
SCSS
$custom: #332ec5;
$custom-light: #826ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#332ec5",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 197
  },
  "hsl": {
    "h": 241.987,
    "s": 62.14,
    "l": 47.647
  },
  "oklch": {
    "l": 0.42783,
    "c": 0.22195,
    "h": 273.2
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#332EC5
secondary
#CBCE81
accent
#E543E0
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #332EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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