#332AC4#332AC4

#332AC4 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.2% C 0.224 H 273.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#332AC4
RGBrgb(51, 42, 196)
HSLhsl(244, 65%, 47%)
HSVhsv(244, 79%, 77%)
CMYKcmyk(74%, 78.6%, 0%, 23.1%)
CIE-LABlab(30.26, 52.48, -77.36)
CIE-LCHlch(30.26, 93.48, 304.15°)
OKLaboklab(42.18% 0.0141 -0.2238)
OKLCHoklch(42.18% 0.224 273.6)
XYZxyz(12.1537, 6.3440, 52.7978)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AC4 #BBC42A
analogous
#2A6EC4 #332AC4 #802AC4
triadic
#332AC4 #C4332A #2AC433
tetradic
#332AC4 #C42A6E #BBC42A #2AC480
square
#332AC4 #C42A6E #BBC42A #2AC480
split-complementary
#332AC4 #C4802A #6EC42A
monochromatic
#19145F #261F92 #332AC4 #5951DA #8984E5

Accessibility & contrast

On white

9.26
#332AC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#332AC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AC4
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AC4#FFFFFF#000000##FFFFFF
##332AC41.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC8
Deuteranopia (green-blind)
#0040C1
Tritanopia (blue-blind)
#005977
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #332ac4;
/* rgb */ color: rgb(51, 42, 196);
/* oklch */ color: oklch(42.2% 0.224 273.6);
Tailwind
colors: {
  custom: {
    50: '#8267d7',
    500: '#332ac4',
    950: '#000000',
  },
}
SCSS
$custom: #332ac4;
$custom-light: #8267d7;
$custom-dark: #000000;
JSON
{
  "hex": "#332ac4",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 196
  },
  "hsl": {
    "h": 243.506,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42175,
    "c": 0.22424,
    "h": 273.6
  },
  "luminance": 0.06345
}

Semantic roles & 50–950 ramp

primary
#332AC4
secondary
#C9CE7C
accent
#E840DE
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #332AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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