#332AA0#332AA0

#332AA0 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.181 H 277.0°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#332AA0
RGBrgb(51, 42, 160)
HSLhsl(245, 58%, 40%)
HSVhsv(245, 74%, 63%)
CMYKcmyk(68.1%, 73.8%, 0%, 37.3%)
CIE-LABlab(26.44, 40.98, -62.18)
CIE-LCHlch(26.44, 74.47, 303.39°)
OKLaboklab(38.35% 0.022 -0.1796)
OKLCHoklch(38.35% 0.181 277)
XYZxyz(8.5363, 4.8971, 33.7463)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AA0 #97A02A
analogous
#2A5CA0 #332AA0 #6E2AA0
triadic
#332AA0 #A0332A #2AA033
tetradic
#332AA0 #A02A5C #97A02A #2AA06E
square
#332AA0 #A02A5C #97A02A #2AA06E
split-complementary
#332AA0 #A06E2A #5CA02A
monochromatic
#14113F #241D70 #332AA0 #473CCC #746CD8

Accessibility & contrast

On white

10.61
#332AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#332AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AA0
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AA0#FFFFFF#000000##FFFFFF
##332AA01.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A3
Deuteranopia (green-blind)
#00399E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332aa0;
/* rgb */ color: rgb(51, 42, 160);
/* oklch */ color: oklch(38.3% 0.181 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a65bd',
    500: '#332aa0',
    950: '#000000',
  },
}
SCSS
$custom: #332aa0;
$custom-light: #7a65bd;
$custom-dark: #000000;
JSON
{
  "hex": "#332aa0",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 244.576,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.18096,
    "h": 277
  },
  "luminance": 0.04898
}

Semantic roles & 50–950 ramp

primary
#332AA0
secondary
#B8BF67
accent
#E246D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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