#332FA4#332FA4

#332FA4 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.181 H 275.7°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#332FA4
RGBrgb(51, 47, 164)
HSLhsl(242, 55%, 41%)
HSVhsv(242, 71%, 64%)
CMYKcmyk(68.9%, 71.3%, 0%, 35.7%)
CIE-LABlab(27.89, 39.39, -62.22)
CIE-LCHlch(27.89, 73.64, 302.34°)
OKLaboklab(39.5% 0.0181 -0.1797)
OKLCHoklch(39.5% 0.181 275.7)
XYZxyz(9.0804, 5.4164, 35.6817)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332FA4 #A0A42F
analogous
#2F66A4 #332FA4 #6E2FA4
triadic
#332FA4 #A4332F #2FA433
tetradic
#332FA4 #A42F66 #A0A42F #2FA46E
square
#332FA4 #A42F66 #A0A42F #2FA46E
split-complementary
#332FA4 #A46E2F #66A42F
monochromatic
#151445 #242174 #332FA4 #4B46CA #7976D8

Accessibility & contrast

On white

10.08
#332FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#332FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332FA4
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332FA4#FFFFFF#000000##FFFFFF
##332FA41.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332fa4;
/* rgb */ color: rgb(51, 47, 164);
/* oklch */ color: oklch(39.5% 0.181 275.7);
Tailwind
colors: {
  custom: {
    50: '#7b69c0',
    500: '#332fa4',
    950: '#000000',
  },
}
SCSS
$custom: #332fa4;
$custom-light: #7b69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#332fa4",
  "rgb": {
    "r": 51,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 242.051,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39503,
    "c": 0.18066,
    "h": 275.7
  },
  "luminance": 0.05417
}

Semantic roles & 50–950 ramp

primary
#332FA4
secondary
#BDC06F
accent
#DF49DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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