#332AB6#332AB6

#332AB6 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.7% C 0.208 H 274.8°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#332AB6
RGBrgb(51, 42, 182)
HSLhsl(244, 63%, 44%)
HSVhsv(244, 77%, 71%)
CMYKcmyk(72%, 76.9%, 0%, 28.6%)
CIE-LABlab(28.74, 48.10, -71.62)
CIE-LCHlch(28.74, 86.27, 303.89°)
OKLaboklab(40.66% 0.0173 -0.2071)
OKLCHoklch(40.66% 0.208 274.8)
XYZxyz(10.6339, 5.7361, 44.7937)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AB6 #ADB62A
analogous
#2A67B6 #332AB6 #792AB6
triadic
#332AB6 #B6332A #2AB633
tetradic
#332AB6 #B62A67 #ADB62A #2AB679
square
#332AB6 #B62A67 #ADB62A #2AB679
split-complementary
#332AB6 #B6792A #67B62A
monochromatic
#171353 #251F84 #332AB6 #5148D5 #817AE0

Accessibility & contrast

On white

9.78
#332AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#332AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AB6
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AB6#FFFFFF#000000##FFFFFF
##332AB61.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332ab6;
/* rgb */ color: rgb(51, 42, 182);
/* oklch */ color: oklch(40.7% 0.208 274.8);
Tailwind
colors: {
  custom: {
    50: '#7f66cd',
    500: '#332ab6',
    950: '#000000',
  },
}
SCSS
$custom: #332ab6;
$custom-light: #7f66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#332ab6",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 243.857,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.20783,
    "h": 274.8
  },
  "luminance": 0.05737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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