#332EB5#332EB5

#332EB5 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.203 H 274.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#332EB5
RGBrgb(51, 46, 181)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 75%, 71%)
CMYKcmyk(71.8%, 74.6%, 0%, 29%)
CIE-LABlab(29.39, 45.61, -69.93)
CIE-LCHlch(29.39, 83.49, 303.11°)
OKLaboklab(41.09% 0.0156 -0.2023)
OKLCHoklch(41.09% 0.203 274.4)
XYZxyz(10.6800, 5.9929, 44.3010)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EB5 #B0B52E
analogous
#2E6DB5 #332EB5 #762EB5
triadic
#332EB5 #B5332E #2EB533
tetradic
#332EB5 #B52E6D #B0B52E #2EB576
square
#332EB5 #B52E6D #B0B52E #2EB576
split-complementary
#332EB5 #B5762E #6DB52E
monochromatic
#181553 #252284 #332EB5 #534ED2 #827FDE

Accessibility & contrast

On white

9.55
#332EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#332EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EB5
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EB5#FFFFFF#000000##FFFFFF
##332EB51.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#003FB3
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #332eb5;
/* rgb */ color: rgb(51, 46, 181);
/* oklch */ color: oklch(41.1% 0.203 274.4);
Tailwind
colors: {
  custom: {
    50: '#7f69cc',
    500: '#332eb5',
    950: '#000000',
  },
}
SCSS
$custom: #332eb5;
$custom-light: #7f69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#332eb5",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 242.222,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41089,
    "c": 0.20286,
    "h": 274.4
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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