#332AA3#332AA3

#332AA3 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.185 H 276.6°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#332AA3
RGBrgb(51, 42, 163)
HSLhsl(244, 59%, 40%)
HSVhsv(244, 74%, 64%)
CMYKcmyk(68.7%, 74.2%, 0%, 36.1%)
CIE-LABlab(26.74, 41.97, -63.50)
CIE-LCHlch(26.74, 76.11, 303.46°)
OKLaboklab(38.66% 0.0214 -0.1835)
OKLCHoklch(38.66% 0.185 276.6)
XYZxyz(8.8019, 5.0033, 35.1451)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332AA3 #9AA32A
analogous
#2A5DA3 #332AA3 #702AA3
triadic
#332AA3 #A3332A #2AA333
tetradic
#332AA3 #A32A5D #9AA32A #2AA370
square
#332AA3 #A32A5D #9AA32A #2AA370
split-complementary
#332AA3 #A3702A #5DA32A
monochromatic
#151142 #241D72 #332AA3 #483DCD #766EDA

Accessibility & contrast

On white

10.50
#332AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#332AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332AA3
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332AA3#FFFFFF#000000##FFFFFF
##332AA31.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332aa3;
/* rgb */ color: rgb(51, 42, 163);
/* oklch */ color: oklch(38.7% 0.185 276.6);
Tailwind
colors: {
  custom: {
    50: '#7b65bf',
    500: '#332aa3',
    950: '#000000',
  },
}
SCSS
$custom: #332aa3;
$custom-light: #7b65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332aa3",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 244.463,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38656,
    "c": 0.18471,
    "h": 276.6
  },
  "luminance": 0.05004
}

Semantic roles & 50–950 ramp

primary
#332AA3
secondary
#BAC068
accent
#E246D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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