#332CA5#332CA5

#332CA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.185 H 276.1°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#332CA5
RGBrgb(51, 44, 165)
HSLhsl(243, 58%, 41%)
HSVhsv(243, 73%, 65%)
CMYKcmyk(69.1%, 73.3%, 0%, 35.3%)
CIE-LABlab(27.36, 41.49, -63.70)
CIE-LCHlch(27.36, 76.02, 303.07°)
OKLaboklab(39.15% 0.0198 -0.1841)
OKLCHoklch(39.15% 0.185 276.1)
XYZxyz(9.0552, 5.2210, 36.1206)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CA5 #9EA52C
analogous
#2C61A5 #332CA5 #6F2CA5
triadic
#332CA5 #A5332C #2CA533
tetradic
#332CA5 #A52C61 #9EA52C #2CA56F
square
#332CA5 #A52C61 #9EA52C #2CA56F
split-complementary
#332CA5 #A56F2C #61A52C
monochromatic
#151244 #241F75 #332CA5 #4A42CD #7872D9

Accessibility & contrast

On white

10.27
#332CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332CA5
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332CA5#FFFFFF#000000##FFFFFF
##332CA51.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332ca5;
/* rgb */ color: rgb(51, 44, 165);
/* oklch */ color: oklch(39.2% 0.185 276.1);
Tailwind
colors: {
  custom: {
    50: '#7b67c1',
    500: '#332ca5',
    950: '#000000',
  },
}
SCSS
$custom: #332ca5;
$custom-light: #7b67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#332ca5",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 243.471,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39152,
    "c": 0.18514,
    "h": 276.1
  },
  "luminance": 0.05222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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