#332AA2#332AA2

#332AA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.183 H 276.8°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#332AA2
RGBrgb(51, 42, 162)
HSLhsl(245, 59%, 40%)
HSVhsv(245, 74%, 64%)
CMYKcmyk(68.5%, 74.1%, 0%, 36.5%)
CIE-LABlab(26.64, 41.64, -63.06)
CIE-LCHlch(26.64, 75.57, 303.44°)
OKLaboklab(38.55% 0.0216 -0.1822)
OKLCHoklch(38.55% 0.183 276.8)
XYZxyz(8.7127, 4.9676, 34.6751)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AA2 #99A22A
analogous
#2A5DA2 #332AA2 #6F2AA2
triadic
#332AA2 #A2332A #2AA233
tetradic
#332AA2 #A22A5D #99A22A #2AA26F
square
#332AA2 #A22A5D #99A22A #2AA26F
split-complementary
#332AA2 #A26F2A #5DA22A
monochromatic
#141141 #241D71 #332AA2 #473DCD #756DD9

Accessibility & contrast

On white

10.53
#332AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#332AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AA2
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AA2#FFFFFF#000000##FFFFFF
##332AA21.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332aa2;
/* rgb */ color: rgb(51, 42, 162);
/* oklch */ color: oklch(38.6% 0.183 276.8);
Tailwind
colors: {
  custom: {
    50: '#7b65bf',
    500: '#332aa2',
    950: '#000000',
  },
}
SCSS
$custom: #332aa2;
$custom-light: #7b65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332aa2",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 244.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38554,
    "c": 0.18346,
    "h": 276.8
  },
  "luminance": 0.04968
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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