#332A71#332A71

#332A71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.118 H 283.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#332A71
RGBrgb(51, 42, 113)
HSLhsl(248, 46%, 30%)
HSVhsv(248, 63%, 44%)
CMYKcmyk(54.9%, 62.8%, 0%, 55.7%)
CIE-LABlab(22.13, 25.13, -39.87)
CIE-LCHlch(22.13, 47.13, 302.22°)
OKLaboklab(33.91% 0.0284 -0.1142)
OKLCHoklch(33.91% 0.118 283.9)
XYZxyz(5.1729, 3.5517, 16.0326)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A71 #68712A
analogous
#2A4471 #332A71 #562A71
triadic
#332A71 #71332A #2A7133
tetradic
#332A71 #712A44 #68712A #2A7156
square
#332A71 #712A44 #68712A #2A7156
split-complementary
#332A71 #71562A #44712A
monochromatic
#0B0918 #1F1944 #332A71 #473B9E #6355C0

Accessibility & contrast

On white

12.28
#332A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#332A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A71
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A71#FFFFFF#000000##FFFFFF
##332A711.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#1A3B49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332a71;
/* rgb */ color: rgb(51, 42, 113);
/* oklch */ color: oklch(33.9% 0.118 283.9);
Tailwind
colors: {
  custom: {
    50: '#71649a',
    500: '#332a71',
    950: '#000000',
  },
}
SCSS
$custom: #332a71;
$custom-light: #71649a;
$custom-dark: #000000;
JSON
{
  "hex": "#332a71",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 247.606,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33914,
    "c": 0.1177,
    "h": 283.9
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#332A71
secondary
#99A354
accent
#D552C5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #332A71

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

Preview Lab → · Contrast checker → · Palette generator →

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