#332DC1#332DC1

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

Color values

HEX#332DC1
RGBrgb(51, 45, 193)
HSLhsl(242, 62%, 47%)
HSVhsv(242, 77%, 76%)
CMYKcmyk(73.6%, 76.7%, 0%, 24.3%)
CIE-LABlab(30.47, 50.01, -75.25)
CIE-LCHlch(30.47, 90.36, 303.61°)
OKLaboklab(42.23% 0.0136 -0.2177)
OKLCHoklch(42.23% 0.218 273.6)
XYZxyz(11.9261, 6.4296, 51.0543)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DC1 #BBC12D
analogous
#2D71C1 #332DC1 #7D2DC1
triadic
#332DC1 #C1332D #2DC133
tetradic
#332DC1 #C12D71 #BBC12D #2DC17D
square
#332DC1 #C12D71 #BBC12D #2DC17D
split-complementary
#332DC1 #C17D2D #71C12D
monochromatic
#19165E #26218F #332DC1 #5954D7 #8986E3

Accessibility & contrast

On white

9.19
#332DC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#332DC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DC1
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DC1#FFFFFF#000000##FFFFFF
##332DC11.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC5
Deuteranopia (green-blind)
#0041BE
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #332dc1;
/* rgb */ color: rgb(51, 45, 193);
/* oklch */ color: oklch(42.2% 0.218 273.6);
Tailwind
colors: {
  custom: {
    50: '#8169d5',
    500: '#332dc1',
    950: '#000000',
  },
}
SCSS
$custom: #332dc1;
$custom-light: #8169d5;
$custom-dark: #000000;
JSON
{
  "hex": "#332dc1",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 242.432,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42225,
    "c": 0.21814,
    "h": 273.6
  },
  "luminance": 0.06431
}

Semantic roles & 50–950 ramp

primary
#332DC1
secondary
#C9CC7E
accent
#E543DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #332DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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