#332FA1#332FA1

#332FA1 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.177 H 276.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#332FA1
RGBrgb(51, 47, 161)
HSLhsl(242, 55%, 41%)
HSVhsv(242, 71%, 63%)
CMYKcmyk(68.3%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.60, 38.38, -60.88)
CIE-LCHlch(27.60, 71.97, 302.23°)
OKLaboklab(39.21% 0.0186 -0.1758)
OKLCHoklch(39.21% 0.177 276)
XYZxyz(8.8127, 5.3093, 34.2717)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA1 #9DA12F
analogous
#2F64A1 #332FA1 #6C2FA1
triadic
#332FA1 #A1332F #2FA133
tetradic
#332FA1 #A12F64 #9DA12F #2FA16C
square
#332FA1 #A12F64 #9DA12F #2FA16C
split-complementary
#332FA1 #A16C2F #64A12F
monochromatic
#151342 #242172 #332FA1 #4945C9 #7774D6

Accessibility & contrast

On white

10.18
#332FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#332FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA1
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA1#FFFFFF#000000##FFFFFF
##332FA11.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332fa1;
/* rgb */ color: rgb(51, 47, 161);
/* oklch */ color: oklch(39.2% 0.177 276.0);
Tailwind
colors: {
  custom: {
    50: '#7a69be',
    500: '#332fa1',
    950: '#000000',
  },
}
SCSS
$custom: #332fa1;
$custom-light: #7a69be;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa1",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 242.105,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39206,
    "c": 0.17682,
    "h": 276
  },
  "luminance": 0.0531
}

Semantic roles & 50–950 ramp

primary
#332FA1
secondary
#BBBE6E
accent
#DE4AD9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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