#332A8E#332A8E

#332A8E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.158 H 279.2°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#332A8E
RGBrgb(51, 42, 142)
HSLhsl(245, 54%, 36%)
HSVhsv(245, 70%, 56%)
CMYKcmyk(64.1%, 70.4%, 0%, 44.3%)
CIE-LABlab(24.68, 34.98, -54.02)
CIE-LCHlch(24.68, 64.36, 302.93°)
OKLaboklab(36.56% 0.0252 -0.1558)
OKLCHoklch(36.56% 0.158 279.2)
XYZxyz(7.0741, 4.3122, 26.0455)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A8E #858E2A
analogous
#2A538E #332A8E #652A8E
triadic
#332A8E #8E332A #2A8E33
tetradic
#332A8E #8E2A53 #858E2A #2A8E65
square
#332A8E #8E2A53 #858E2A #2A8E65
split-complementary
#332A8E #8E652A #538E2A
monochromatic
#110E30 #221C5F #332A8E #4438BD #6C62D1

Accessibility & contrast

On white

11.27
#332A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#332A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A8E
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A8E#FFFFFF#000000##FFFFFF
##332A8E1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332a8e;
/* rgb */ color: rgb(51, 42, 142);
/* oklch */ color: oklch(36.6% 0.158 279.2);
Tailwind
colors: {
  custom: {
    50: '#7665b0',
    500: '#332a8e',
    950: '#000000',
  },
}
SCSS
$custom: #332a8e;
$custom-light: #7665b0;
$custom-dark: #000000;
JSON
{
  "hex": "#332a8e",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 245.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36555,
    "c": 0.1578,
    "h": 279.2
  },
  "luminance": 0.04313
}

Semantic roles & 50–950 ramp

primary
#332A8E
secondary
#AEB65D
accent
#DE4AD0
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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