#332AB8#332AB8

#332AB8 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.9% C 0.210 H 274.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#332AB8
RGBrgb(51, 42, 184)
HSLhsl(244, 63%, 44%)
HSVhsv(244, 77%, 72%)
CMYKcmyk(72.3%, 77.2%, 0%, 27.8%)
CIE-LABlab(28.95, 48.73, -72.45)
CIE-LCHlch(28.95, 87.31, 303.93°)
OKLaboklab(40.87% 0.0169 -0.2095)
OKLCHoklch(40.87% 0.21 274.6)
XYZxyz(10.8421, 5.8194, 45.8900)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB8 #AFB82A
analogous
#2A68B8 #332AB8 #7A2AB8
triadic
#332AB8 #B8332A #2AB833
tetradic
#332AB8 #B82A68 #AFB82A #2AB87A
square
#332AB8 #B82A68 #AFB82A #2AB87A
split-complementary
#332AB8 #B87A2A #68B82A
monochromatic
#171354 #251F86 #332AB8 #524AD6 #827BE1

Accessibility & contrast

On white

9.70
#332AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332AB8
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB8#FFFFFF#000000##FFFFFF
##332AB81.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBC
Deuteranopia (green-blind)
#003EB6
Tritanopia (blue-blind)
#005470
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #332ab8;
/* rgb */ color: rgb(51, 42, 184);
/* oklch */ color: oklch(40.9% 0.210 274.6);
Tailwind
colors: {
  custom: {
    50: '#8066cf',
    500: '#332ab8',
    950: '#000000',
  },
}
SCSS
$custom: #332ab8;
$custom-light: #8066cf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab8",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 243.803,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40871,
    "c": 0.21021,
    "h": 274.6
  },
  "luminance": 0.0582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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