#332B97#332B97

#332B97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.168 H 277.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#332B97
RGBrgb(51, 43, 151)
HSLhsl(244, 56%, 38%)
HSVhsv(244, 72%, 59%)
CMYKcmyk(66.2%, 71.5%, 0%, 40.8%)
CIE-LABlab(25.76, 37.41, -57.80)
CIE-LCHlch(25.76, 68.85, 302.91°)
OKLaboklab(37.59% 0.023 -0.1668)
OKLCHoklch(37.59% 0.168 277.8)
XYZxyz(7.8132, 4.6653, 29.7609)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B97 #8F972B
analogous
#2B5997 #332B97 #692B97
triadic
#332B97 #97332B #2B9733
tetradic
#332B97 #972B59 #8F972B #2B9769
square
#332B97 #972B59 #8F972B #2B9769
split-complementary
#332B97 #97692B #59972B
monochromatic
#131038 #231D67 #332B97 #4339C7 #7068D4

Accessibility & contrast

On white

10.86
#332B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#332B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B97
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B97#FFFFFF#000000##FFFFFF
##332B971.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #332b97;
/* rgb */ color: rgb(51, 43, 151);
/* oklch */ color: oklch(37.6% 0.168 277.8);
Tailwind
colors: {
  custom: {
    50: '#7866b7',
    500: '#332b97',
    950: '#000000',
  },
}
SCSS
$custom: #332b97;
$custom-light: #7866b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332b97",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 244.444,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37594,
    "c": 0.16841,
    "h": 277.8
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#332B97
secondary
#B4BB63
accent
#DF49D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332B97

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

Preview Lab → · Contrast checker → · Palette generator →

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