#332CA2#332CA2

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

Color values

HEX#332CA2
RGBrgb(51, 44, 162)
HSLhsl(244, 57%, 40%)
HSVhsv(244, 73%, 64%)
CMYKcmyk(68.5%, 72.8%, 0%, 36.5%)
CIE-LABlab(27.05, 40.49, -62.38)
CIE-LCHlch(27.05, 74.37, 302.99°)
OKLaboklab(38.85% 0.0203 -0.1802)
OKLCHoklch(38.85% 0.181 276.4)
XYZxyz(8.7854, 5.1130, 34.6993)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CA2 #9BA22C
analogous
#2C60A2 #332CA2 #6E2CA2
triadic
#332CA2 #A2332C #2CA233
tetradic
#332CA2 #A22C60 #9BA22C #2CA26E
square
#332CA2 #A22C60 #9BA22C #2CA26E
split-complementary
#332CA2 #A26E2C #60A22C
monochromatic
#151242 #241F72 #332CA2 #4840CB #7670D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332CA2#FFFFFF#000000##FFFFFF
##332CA21.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)
#0045A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332ca2;
/* rgb */ color: rgb(51, 44, 162);
/* oklch */ color: oklch(38.8% 0.181 276.4);
Tailwind
colors: {
  custom: {
    50: '#7a67bf',
    500: '#332ca2',
    950: '#000000',
  },
}
SCSS
$custom: #332ca2;
$custom-light: #7a67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ca2",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 243.559,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38847,
    "c": 0.18136,
    "h": 276.4
  },
  "luminance": 0.05114
}

Semantic roles & 50–950 ramp

primary
#332CA2
secondary
#BABF6A
accent
#E147D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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