#332C86#332C86

#332C86 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.145 H 279.8°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#332C86
RGBrgb(51, 44, 134)
HSLhsl(245, 51%, 35%)
HSVhsv(245, 67%, 53%)
CMYKcmyk(61.9%, 67.2%, 0%, 47.5%)
CIE-LABlab(24.40, 31.02, -49.48)
CIE-LCHlch(24.40, 58.40, 302.08°)
OKLaboklab(36.13% 0.0246 -0.1425)
OKLCHoklch(36.13% 0.145 279.8)
XYZxyz(6.5676, 4.2259, 23.0192)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C86 #7F862C
analogous
#2C5286 #332C86 #602C86
triadic
#332C86 #86332C #2C8633
tetradic
#332C86 #862C52 #7F862C #2C8660
square
#332C86 #862C52 #7F862C #2C8660
split-complementary
#332C86 #86602C #52862C
monochromatic
#100E2A #211D58 #332C86 #453BB4 #6961CB

Accessibility & contrast

On white

11.38
#332C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#332C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C86
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C86#FFFFFF#000000##FFFFFF
##332C861.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332c86;
/* rgb */ color: rgb(51, 44, 134);
/* oklch */ color: oklch(36.1% 0.145 279.8);
Tailwind
colors: {
  custom: {
    50: '#7566aa',
    500: '#332c86',
    950: '#000000',
  },
}
SCSS
$custom: #332c86;
$custom-light: #7566aa;
$custom-dark: #000000;
JSON
{
  "hex": "#332c86",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 134
  },
  "hsl": {
    "h": 244.667,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36132,
    "c": 0.14458,
    "h": 279.8
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#332C86
secondary
#ABB15C
accent
#DA4ECF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332C86

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

Preview Lab → · Contrast checker → · Palette generator →

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