#332AC5#332AC5

#332AC5 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.3% C 0.225 H 273.5°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#332AC5
RGBrgb(51, 42, 197)
HSLhsl(243, 65%, 47%)
HSVhsv(243, 79%, 77%)
CMYKcmyk(74.1%, 78.7%, 0%, 22.7%)
CIE-LABlab(30.38, 52.79, -77.76)
CIE-LCHlch(30.38, 93.99, 304.17°)
OKLaboklab(42.29% 0.0139 -0.225)
OKLCHoklch(42.29% 0.225 273.5)
XYZxyz(12.2679, 6.3897, 53.3993)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AC5 #BCC52A
analogous
#2A6FC5 #332AC5 #812AC5
triadic
#332AC5 #C5332A #2AC533
tetradic
#332AC5 #C52A6F #BCC52A #2AC581
square
#332AC5 #C52A6F #BCC52A #2AC581
split-complementary
#332AC5 #C5812A #6FC52A
monochromatic
#191460 #261F93 #332AC5 #5A52DA #8A85E5

Accessibility & contrast

On white

9.22
#332AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#332AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AC5
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AC5#FFFFFF#000000##FFFFFF
##332AC51.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC9
Deuteranopia (green-blind)
#0040C2
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #332ac5;
/* rgb */ color: rgb(51, 42, 197);
/* oklch */ color: oklch(42.3% 0.225 273.5);
Tailwind
colors: {
  custom: {
    50: '#8367d8',
    500: '#332ac5',
    950: '#000000',
  },
}
SCSS
$custom: #332ac5;
$custom-light: #8367d8;
$custom-dark: #000000;
JSON
{
  "hex": "#332ac5",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 243.484,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42285,
    "c": 0.22541,
    "h": 273.5
  },
  "luminance": 0.06391
}

Semantic roles & 50–950 ramp

primary
#332AC5
secondary
#C9CE7D
accent
#E840DE
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #332AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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