#332AB1#332AB1

#332AB1 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.202 H 275.2°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#332AB1
RGBrgb(51, 42, 177)
HSLhsl(244, 62%, 43%)
HSVhsv(244, 76%, 69%)
CMYKcmyk(71.2%, 76.3%, 0%, 30.6%)
CIE-LABlab(28.20, 46.50, -69.52)
CIE-LCHlch(28.20, 83.64, 303.78°)
OKLaboklab(40.12% 0.0184 -0.201)
OKLCHoklch(40.12% 0.202 275.2)
XYZxyz(10.1264, 5.5331, 42.1208)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB1 #A8B12A
analogous
#2A64B1 #332AB1 #762AB1
triadic
#332AB1 #B1332A #2AB133
tetradic
#332AB1 #B12A64 #A8B12A #2AB176
square
#332AB1 #B12A64 #A8B12A #2AB176
split-complementary
#332AB1 #B1762A #64B12A
monochromatic
#16134E #251E80 #332AB1 #4F45D3 #7E77DF

Accessibility & contrast

On white

9.97
#332AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#332AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AB1
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB1#FFFFFF#000000##FFFFFF
##332AB11.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#003CAF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #332ab1;
/* rgb */ color: rgb(51, 42, 177);
/* oklch */ color: oklch(40.1% 0.202 275.2);
Tailwind
colors: {
  custom: {
    50: '#7e66ca',
    500: '#332ab1',
    950: '#000000',
  },
}
SCSS
$custom: #332ab1;
$custom-light: #7e66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab1",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 244,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40122,
    "c": 0.20185,
    "h": 275.2
  },
  "luminance": 0.05534
}

Semantic roles & 50–950 ramp

primary
#332AB1
secondary
#C1C670
accent
#E543DA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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