#332BA4#332BA4

#332BA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.185 H 276.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#332BA4
RGBrgb(51, 43, 164)
HSLhsl(244, 58%, 41%)
HSVhsv(244, 74%, 64%)
CMYKcmyk(68.9%, 73.8%, 0%, 35.7%)
CIE-LABlab(27.05, 41.73, -63.60)
CIE-LCHlch(27.05, 76.07, 303.27°)
OKLaboklab(38.9% 0.0206 -0.1838)
OKLCHoklch(38.9% 0.185 276.4)
XYZxyz(8.9278, 5.1111, 35.6308)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BA4 #9CA42B
analogous
#2B5FA4 #332BA4 #6F2BA4
triadic
#332BA4 #A4332B #2BA433
tetradic
#332BA4 #A42B5F #9CA42B #2BA46F
square
#332BA4 #A42B5F #9CA42B #2BA46F
split-complementary
#332BA4 #A46F2B #5FA42B
monochromatic
#151243 #241E74 #332BA4 #493FCD #7770D9

Accessibility & contrast

On white

10.38
#332BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332BA4
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BA4#FFFFFF#000000##FFFFFF
##332BA41.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332ba4;
/* rgb */ color: rgb(51, 43, 164);
/* oklch */ color: oklch(38.9% 0.185 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b66c0',
    500: '#332ba4',
    950: '#000000',
  },
}
SCSS
$custom: #332ba4;
$custom-light: #7b66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#332ba4",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 243.967,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38903,
    "c": 0.18493,
    "h": 276.4
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#332BA4
secondary
#BBC16A
accent
#E246D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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