#332AB7#332AB7

#332AB7 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.8% C 0.209 H 274.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#332AB7
RGBrgb(51, 42, 183)
HSLhsl(244, 63%, 44%)
HSVhsv(244, 77%, 72%)
CMYKcmyk(72.1%, 77%, 0%, 28.2%)
CIE-LABlab(28.84, 48.41, -72.03)
CIE-LCHlch(28.84, 86.79, 303.91°)
OKLaboklab(40.76% 0.0171 -0.2083)
OKLCHoklch(40.76% 0.209 274.7)
XYZxyz(10.7376, 5.7776, 45.3399)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB7 #AEB72A
analogous
#2A68B7 #332AB7 #7A2AB7
triadic
#332AB7 #B7332A #2AB733
tetradic
#332AB7 #B72A68 #AEB72A #2AB77A
square
#332AB7 #B72A68 #AEB72A #2AB77A
split-complementary
#332AB7 #B77A2A #68B72A
monochromatic
#171353 #251F85 #332AB7 #5249D5 #817BE1

Accessibility & contrast

On white

9.74
#332AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#332AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AB7
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB7#FFFFFF#000000##FFFFFF
##332AB71.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABB
Deuteranopia (green-blind)
#003DB5
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #332ab7;
/* rgb */ color: rgb(51, 42, 183);
/* oklch */ color: oklch(40.8% 0.209 274.7);
Tailwind
colors: {
  custom: {
    50: '#7f66ce',
    500: '#332ab7',
    950: '#000000',
  },
}
SCSS
$custom: #332ab7;
$custom-light: #7f66ce;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab7",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 243.83,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40764,
    "c": 0.20903,
    "h": 274.7
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#332AB7
secondary
#C3C974
accent
#E642DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #332AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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