#332EC1#332EC1

#332EC1 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.4% C 0.217 H 273.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#332EC1
RGBrgb(51, 46, 193)
HSLhsl(242, 62%, 47%)
HSVhsv(242, 76%, 76%)
CMYKcmyk(73.6%, 76.2%, 0%, 24.3%)
CIE-LABlab(30.66, 49.48, -74.95)
CIE-LCHlch(30.66, 89.81, 303.43°)
OKLaboklab(42.36% 0.0132 -0.2168)
OKLCHoklch(42.36% 0.217 273.5)
XYZxyz(11.9647, 6.5068, 51.0671)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EC1 #BCC12E
analogous
#2E73C1 #332EC1 #7D2EC1
triadic
#332EC1 #C1332E #2EC133
tetradic
#332EC1 #C12E73 #BCC12E #2EC17D
square
#332EC1 #C12E73 #BCC12E #2EC17D
split-complementary
#332EC1 #C17D2E #73C12E
monochromatic
#19165E #262290 #332EC1 #5A56D7 #8A87E2

Accessibility & contrast

On white

9.12
#332EC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#332EC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EC1
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EC1#FFFFFF#000000##FFFFFF
##332EC11.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC5
Deuteranopia (green-blind)
#0041BE
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #332ec1;
/* rgb */ color: rgb(51, 46, 193);
/* oklch */ color: oklch(42.4% 0.217 273.5);
Tailwind
colors: {
  custom: {
    50: '#8169d5',
    500: '#332ec1',
    950: '#000000',
  },
}
SCSS
$custom: #332ec1;
$custom-light: #8169d5;
$custom-dark: #000000;
JSON
{
  "hex": "#332ec1",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 193
  },
  "hsl": {
    "h": 242.041,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42355,
    "c": 0.21724,
    "h": 273.5
  },
  "luminance": 0.06508
}

Semantic roles & 50–950 ramp

primary
#332EC1
secondary
#C9CC7F
accent
#E543DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #332EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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