#332A95#332A95

#332A95 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.167 H 278.3°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#332A95
RGBrgb(51, 42, 149)
HSLhsl(245, 56%, 37%)
HSVhsv(245, 72%, 58%)
CMYKcmyk(65.8%, 71.8%, 0%, 41.6%)
CIE-LABlab(25.35, 37.34, -57.24)
CIE-LCHlch(25.35, 68.34, 303.11°)
OKLaboklab(37.24% 0.0241 -0.1652)
OKLCHoklch(37.24% 0.167 278.3)
XYZxyz(7.6163, 4.5290, 28.9008)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A95 #8C952A
analogous
#2A5695 #332A95 #692A95
triadic
#332A95 #95332A #2A9533
tetradic
#332A95 #952A56 #8C952A #2A9569
square
#332A95 #952A56 #8C952A #2A9569
split-complementary
#332A95 #95692A #56952A
monochromatic
#120F36 #231D65 #332A95 #4337C5 #6F66D4

Accessibility & contrast

On white

11.02
#332A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#332A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A95
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A95#FFFFFF#000000##FFFFFF
##332A951.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332a95;
/* rgb */ color: rgb(51, 42, 149);
/* oklch */ color: oklch(37.2% 0.167 278.3);
Tailwind
colors: {
  custom: {
    50: '#7865b5',
    500: '#332a95',
    950: '#000000',
  },
}
SCSS
$custom: #332a95;
$custom-light: #7865b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332a95",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 245.047,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37241,
    "c": 0.16694,
    "h": 278.3
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#332A95
secondary
#B2BA61
accent
#DF48D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332A95

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

Preview Lab → · Contrast checker → · Palette generator →

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