#332DB7#332DB7

#332DB7 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.2% C 0.206 H 274.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#332DB7
RGBrgb(51, 45, 183)
HSLhsl(243, 61%, 45%)
HSVhsv(243, 75%, 72%)
CMYKcmyk(72.1%, 75.4%, 0%, 28.2%)
CIE-LABlab(29.41, 46.81, -71.10)
CIE-LCHlch(29.41, 85.12, 303.36°)
OKLaboklab(41.16% 0.0157 -0.2056)
OKLCHoklch(41.16% 0.206 274.4)
XYZxyz(10.8480, 5.9984, 45.3767)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DB7 #B1B72D
analogous
#2D6CB7 #332DB7 #782DB7
triadic
#332DB7 #B7332D #2DB733
tetradic
#332DB7 #B72D6C #B1B72D #2DB778
square
#332DB7 #B72D6C #B1B72D #2DB778
split-complementary
#332DB7 #B7782D #6CB72D
monochromatic
#181555 #252186 #332DB7 #544ED3 #837FDF

Accessibility & contrast

On white

9.55
#332DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#332DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DB7
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DB7#FFFFFF#000000##FFFFFF
##332DB71.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #332db7;
/* rgb */ color: rgb(51, 45, 183);
/* oklch */ color: oklch(41.2% 0.206 274.4);
Tailwind
colors: {
  custom: {
    50: '#7f68ce',
    500: '#332db7',
    950: '#000000',
  },
}
SCSS
$custom: #332db7;
$custom-light: #7f68ce;
$custom-dark: #000000;
JSON
{
  "hex": "#332db7",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 242.609,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41161,
    "c": 0.20624,
    "h": 274.4
  },
  "luminance": 0.05999
}

Semantic roles & 50–950 ramp

primary
#332DB7
secondary
#C5C878
accent
#E444DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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