#332FB5#332FB5

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

Color values

HEX#332FB5
RGBrgb(51, 47, 181)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 71%)
CMYKcmyk(71.8%, 74%, 0%, 29%)
CIE-LABlab(29.59, 45.05, -69.61)
CIE-LCHlch(29.59, 82.91, 302.91°)
OKLaboklab(41.23% 0.0151 -0.2013)
OKLCHoklch(41.23% 0.202 274.3)
XYZxyz(10.7195, 6.0720, 44.3142)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FB5 #B1B52F
analogous
#2F6EB5 #332FB5 #762FB5
triadic
#332FB5 #B5332F #2FB533
tetradic
#332FB5 #B52F6E #B1B52F #2FB576
square
#332FB5 #B52F6E #B1B52F #2FB576
split-complementary
#332FB5 #B5762F #6EB52F
monochromatic
#181654 #252284 #332FB5 #5450D1 #8380DE

Accessibility & contrast

On white

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

On black

2.21
#332FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##332FB5#FFFFFF#000000##FFFFFF
##332FB51.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#003FB3
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #332fb5;
/* rgb */ color: rgb(51, 47, 181);
/* oklch */ color: oklch(41.2% 0.202 274.3);
Tailwind
colors: {
  custom: {
    50: '#7e69cc',
    500: '#332fb5',
    950: '#000000',
  },
}
SCSS
$custom: #332fb5;
$custom-light: #7e69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#332fb5",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 241.791,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4123,
    "c": 0.20187,
    "h": 274.3
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#332FB5
secondary
#C5C779
accent
#E246DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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