#332DC2#332DC2

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

Color values

HEX#332DC2
RGBrgb(51, 45, 194)
HSLhsl(242, 62%, 47%)
HSVhsv(242, 77%, 76%)
CMYKcmyk(73.7%, 76.8%, 0%, 23.9%)
CIE-LABlab(30.58, 50.33, -75.66)
CIE-LCHlch(30.58, 90.87, 303.63°)
OKLaboklab(42.33% 0.0134 -0.2189)
OKLCHoklch(42.33% 0.219 273.5)
XYZxyz(12.0380, 6.4744, 51.6437)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DC2 #BCC22D
analogous
#2D72C2 #332DC2 #7E2DC2
triadic
#332DC2 #C2332D #2DC233
tetradic
#332DC2 #C22D72 #BCC22D #2DC27E
square
#332DC2 #C22D72 #BCC22D #2DC27E
split-complementary
#332DC2 #C27E2D #72C22D
monochromatic
#19165F #262190 #332DC2 #5A55D7 #8A86E3

Accessibility & contrast

On white

9.15
#332DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#332DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DC2
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DC2#FFFFFF#000000##FFFFFF
##332DC21.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC6
Deuteranopia (green-blind)
#0041BF
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #332dc2;
/* rgb */ color: rgb(51, 45, 194);
/* oklch */ color: oklch(42.3% 0.219 273.5);
Tailwind
colors: {
  custom: {
    50: '#8269d6',
    500: '#332dc2',
    950: '#000000',
  },
}
SCSS
$custom: #332dc2;
$custom-light: #8269d6;
$custom-dark: #000000;
JSON
{
  "hex": "#332dc2",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 242.416,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42332,
    "c": 0.21933,
    "h": 273.5
  },
  "luminance": 0.06476
}

Semantic roles & 50–950 ramp

primary
#332DC2
secondary
#C9CD7E
accent
#E542DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #332DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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