#332EB2#332EB2

#332EB2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.199 H 274.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#332EB2
RGBrgb(51, 46, 178)
HSLhsl(242, 59%, 44%)
HSVhsv(242, 74%, 70%)
CMYKcmyk(71.3%, 74.2%, 0%, 30.2%)
CIE-LABlab(29.08, 44.63, -68.66)
CIE-LCHlch(29.08, 81.89, 303.03°)
OKLaboklab(40.78% 0.0162 -0.1985)
OKLCHoklch(40.78% 0.199 274.7)
XYZxyz(10.3755, 5.8711, 42.6973)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EB2 #ADB22E
analogous
#2E6BB2 #332EB2 #752EB2
triadic
#332EB2 #B2332E #2EB233
tetradic
#332EB2 #B22E6B #ADB22E #2EB275
square
#332EB2 #B22E6B #ADB22E #2EB275
split-complementary
#332EB2 #B2752E #6BB22E
monochromatic
#171551 #252181 #332EB2 #514CD1 #817DDD

Accessibility & contrast

On white

9.66
#332EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#332EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EB2
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EB2#FFFFFF#000000##FFFFFF
##332EB21.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #332eb2;
/* rgb */ color: rgb(51, 46, 178);
/* oklch */ color: oklch(40.8% 0.199 274.7);
Tailwind
colors: {
  custom: {
    50: '#7e69ca',
    500: '#332eb2',
    950: '#000000',
  },
}
SCSS
$custom: #332eb2;
$custom-light: #7e69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#332eb2",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 242.273,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40777,
    "c": 0.1992,
    "h": 274.7
  },
  "luminance": 0.05872
}

Semantic roles & 50–950 ramp

primary
#332EB2
secondary
#C3C676
accent
#E246DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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