#332C81#332C81

#332C81 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.138 H 280.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#332C81
RGBrgb(51, 44, 129)
HSLhsl(245, 49%, 34%)
HSVhsv(245, 66%, 51%)
CMYKcmyk(60.5%, 65.9%, 0%, 49.4%)
CIE-LABlab(23.97, 29.30, -47.06)
CIE-LCHlch(23.97, 55.44, 301.91°)
OKLaboklab(35.68% 0.0251 -0.1354)
OKLCHoklch(35.68% 0.138 280.5)
XYZxyz(6.2271, 4.0897, 21.2259)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C81 #7A812C
analogous
#2C5081 #332C81 #5E2C81
triadic
#332C81 #81332C #2C8133
tetradic
#332C81 #812C50 #7A812C #2C815E
square
#332C81 #812C50 #7A812C #2C815E
split-complementary
#332C81 #815E2C #50812C
monochromatic
#0F0D26 #211C53 #332C81 #453CAF #685FC8

Accessibility & contrast

On white

11.55
#332C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#332C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C81
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C81#FFFFFF#000000##FFFFFF
##332C811.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#014152
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332c81;
/* rgb */ color: rgb(51, 44, 129);
/* oklch */ color: oklch(35.7% 0.138 280.5);
Tailwind
colors: {
  custom: {
    50: '#7465a6',
    500: '#332c81',
    950: '#000000',
  },
}
SCSS
$custom: #332c81;
$custom-light: #7465a6;
$custom-dark: #000000;
JSON
{
  "hex": "#332c81",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 244.941,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35677,
    "c": 0.13767,
    "h": 280.5
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#332C81
secondary
#A8AF5A
accent
#D94FCD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #332C81

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

Preview Lab → · Contrast checker → · Palette generator →

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