#332EB7#332EB7

#332EB7 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.205 H 274.2°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#332EB7
RGBrgb(51, 46, 183)
HSLhsl(242, 60%, 45%)
HSVhsv(242, 75%, 72%)
CMYKcmyk(72.1%, 74.9%, 0%, 28.2%)
CIE-LABlab(29.60, 46.26, -70.78)
CIE-LCHlch(29.60, 84.56, 303.17°)
OKLaboklab(41.3% 0.0152 -0.2047)
OKLCHoklch(41.3% 0.205 274.2)
XYZxyz(10.8866, 6.0756, 45.3895)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EB7 #B2B72E
analogous
#2E6DB7 #332EB7 #782EB7
triadic
#332EB7 #B7332E #2EB733
tetradic
#332EB7 #B72E6D #B2B72E #2EB778
square
#332EB7 #B72E6D #B2B72E #2EB778
split-complementary
#332EB7 #B7782E #6DB72E
monochromatic
#181555 #252286 #332EB7 #544FD3 #8480DF

Accessibility & contrast

On white

9.48
#332EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#332EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EB7
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EB7#FFFFFF#000000##FFFFFF
##332EB71.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #332eb7;
/* rgb */ color: rgb(51, 46, 183);
/* oklch */ color: oklch(41.3% 0.205 274.2);
Tailwind
colors: {
  custom: {
    50: '#7f69ce',
    500: '#332eb7',
    950: '#000000',
  },
}
SCSS
$custom: #332eb7;
$custom-light: #7f69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#332eb7",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 242.19,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41298,
    "c": 0.20528,
    "h": 274.2
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#332EB7
secondary
#C5C879
accent
#E345DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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