#332CA1#332CA1

#332CA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.180 H 276.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#332CA1
RGBrgb(51, 44, 161)
HSLhsl(244, 57%, 40%)
HSVhsv(244, 73%, 63%)
CMYKcmyk(68.3%, 72.7%, 0%, 36.9%)
CIE-LABlab(26.95, 40.16, -61.94)
CIE-LCHlch(26.95, 73.82, 302.96°)
OKLaboklab(38.75% 0.0205 -0.1789)
OKLCHoklch(38.75% 0.18 276.5)
XYZxyz(8.6968, 5.0776, 34.2331)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CA1 #9AA12C
analogous
#2C5FA1 #332CA1 #6E2CA1
triadic
#332CA1 #A1332C #2CA133
tetradic
#332CA1 #A12C5F #9AA12C #2CA16E
square
#332CA1 #A12C5F #9AA12C #2CA16E
split-complementary
#332CA1 #A16E2C #5FA12C
monochromatic
#151241 #241F71 #332CA1 #4840CB #7670D8

Accessibility & contrast

On white

10.42
#332CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332CA1
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332CA1#FFFFFF#000000##FFFFFF
##332CA11.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332ca1;
/* rgb */ color: rgb(51, 44, 161);
/* oklch */ color: oklch(38.7% 0.180 276.5);
Tailwind
colors: {
  custom: {
    50: '#7a67be',
    500: '#332ca1',
    950: '#000000',
  },
}
SCSS
$custom: #332ca1;
$custom-light: #7a67be;
$custom-dark: #000000;
JSON
{
  "hex": "#332ca1",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 243.59,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38746,
    "c": 0.1801,
    "h": 276.5
  },
  "luminance": 0.05078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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