#332B71#332B71

#332B71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.1% C 0.116 H 283.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#332B71
RGBrgb(51, 43, 113)
HSLhsl(247, 45%, 31%)
HSVhsv(247, 62%, 44%)
CMYKcmyk(54.9%, 61.9%, 0%, 55.7%)
CIE-LABlab(22.39, 24.47, -39.46)
CIE-LCHlch(22.39, 46.43, 301.80°)
OKLaboklab(34.1% 0.0272 -0.113)
OKLCHoklch(34.1% 0.116 283.5)
XYZxyz(5.2089, 3.6235, 16.0445)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B71 #69712B
analogous
#2B4671 #332B71 #562B71
triadic
#332B71 #71332B #2B7133
tetradic
#332B71 #712B46 #69712B #2B7156
square
#332B71 #712B46 #69712B #2B7156
split-complementary
#332B71 #71562B #46712B
monochromatic
#0B0918 #1F1A45 #332B71 #473C9D #6357BF

Accessibility & contrast

On white

12.18
#332B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#332B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B71
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B71#FFFFFF#000000##FFFFFF
##332B711.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332b71;
/* rgb */ color: rgb(51, 43, 113);
/* oklch */ color: oklch(34.1% 0.116 283.5);
Tailwind
colors: {
  custom: {
    50: '#71649a',
    500: '#332b71',
    950: '#000000',
  },
}
SCSS
$custom: #332b71;
$custom-light: #71649a;
$custom-dark: #000000;
JSON
{
  "hex": "#332b71",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 246.857,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34102,
    "c": 0.11624,
    "h": 283.5
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#332B71
secondary
#9AA355
accent
#D553C6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #332B71

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

Preview Lab → · Contrast checker → · Palette generator →

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