#332CA7#332CA7

#332CA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.188 H 275.9°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#332CA7
RGBrgb(51, 44, 167)
HSLhsl(243, 58%, 41%)
HSVhsv(243, 74%, 65%)
CMYKcmyk(69.5%, 73.7%, 0%, 34.5%)
CIE-LABlab(27.56, 42.15, -64.58)
CIE-LCHlch(27.56, 77.11, 303.13°)
OKLaboklab(39.36% 0.0194 -0.1866)
OKLCHoklch(39.36% 0.188 275.9)
XYZxyz(9.2387, 5.2943, 37.0868)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CA7 #A0A72C
analogous
#2C63A7 #332CA7 #712CA7
triadic
#332CA7 #A7332C #2CA733
tetradic
#332CA7 #A72C63 #A0A72C #2CA771
square
#332CA7 #A72C63 #A0A72C #2CA771
split-complementary
#332CA7 #A7712C #63A72C
monochromatic
#151246 #241F77 #332CA7 #4B43CD #7973DA

Accessibility & contrast

On white

10.20
#332CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#332CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332CA7
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332CA7#FFFFFF#000000##FFFFFF
##332CA71.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332ca7;
/* rgb */ color: rgb(51, 44, 167);
/* oklch */ color: oklch(39.4% 0.188 275.9);
Tailwind
colors: {
  custom: {
    50: '#7c67c2',
    500: '#332ca7',
    950: '#000000',
  },
}
SCSS
$custom: #332ca7;
$custom-light: #7c67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#332ca7",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 243.415,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39356,
    "c": 0.18763,
    "h": 275.9
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#332CA7
secondary
#BDC26D
accent
#E246D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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