#332CA4#332CA4

#332CA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.184 H 276.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#332CA4
RGBrgb(51, 44, 164)
HSLhsl(244, 58%, 41%)
HSVhsv(244, 73%, 64%)
CMYKcmyk(68.9%, 73.2%, 0%, 35.7%)
CIE-LABlab(27.25, 41.16, -63.26)
CIE-LCHlch(27.25, 75.47, 303.05°)
OKLaboklab(39.05% 0.02 -0.1828)
OKLCHoklch(39.05% 0.184 276.2)
XYZxyz(8.9646, 5.1847, 35.6431)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CA4 #9DA42C
analogous
#2C61A4 #332CA4 #6F2CA4
triadic
#332CA4 #A4332C #2CA433
tetradic
#332CA4 #A42C61 #9DA42C #2CA46F
square
#332CA4 #A42C61 #9DA42C #2CA46F
split-complementary
#332CA4 #A46F2C #61A42C
monochromatic
#151243 #241F74 #332CA4 #4941CC #7771D9

Accessibility & contrast

On white

10.31
#332CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#332CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332CA4
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332CA4#FFFFFF#000000##FFFFFF
##332CA41.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332ca4;
/* rgb */ color: rgb(51, 44, 164);
/* oklch */ color: oklch(39.1% 0.184 276.2);
Tailwind
colors: {
  custom: {
    50: '#7b67c0',
    500: '#332ca4',
    950: '#000000',
  },
}
SCSS
$custom: #332ca4;
$custom-light: #7b67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#332ca4",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 243.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3905,
    "c": 0.18388,
    "h": 276.2
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#332CA4
secondary
#BBC06B
accent
#E147D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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