#332BA3#332BA3

#332BA3 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.184 H 276.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#332BA3
RGBrgb(51, 43, 163)
HSLhsl(244, 58%, 40%)
HSVhsv(244, 74%, 64%)
CMYKcmyk(68.7%, 73.6%, 0%, 36.1%)
CIE-LABlab(26.95, 41.40, -63.16)
CIE-LCHlch(26.95, 75.52, 303.24°)
OKLaboklab(38.8% 0.0208 -0.1825)
OKLCHoklch(38.8% 0.184 276.5)
XYZxyz(8.8378, 5.0751, 35.1571)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BA3 #9BA32B
analogous
#2B5FA3 #332BA3 #6F2BA3
triadic
#332BA3 #A3332B #2BA333
tetradic
#332BA3 #A32B5F #9BA32B #2BA36F
square
#332BA3 #A32B5F #9BA32B #2BA36F
split-complementary
#332BA3 #A36F2B #5FA32B
monochromatic
#151142 #241E73 #332BA3 #483FCC #766FD9

Accessibility & contrast

On white

10.42
#332BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#332BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332BA3
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BA3#FFFFFF#000000##FFFFFF
##332BA31.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332ba3;
/* rgb */ color: rgb(51, 43, 163);
/* oklch */ color: oklch(38.8% 0.184 276.5);
Tailwind
colors: {
  custom: {
    50: '#7b66bf',
    500: '#332ba3',
    950: '#000000',
  },
}
SCSS
$custom: #332ba3;
$custom-light: #7b66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ba3",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 244,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38801,
    "c": 0.18368,
    "h": 276.5
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#332BA3
secondary
#BAC06A
accent
#E146D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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