#332C8A#332C8A

#332C8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.150 H 279.3°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#332C8A
RGBrgb(51, 44, 138)
HSLhsl(244, 52%, 36%)
HSVhsv(244, 68%, 54%)
CMYKcmyk(63%, 68.1%, 0%, 45.9%)
CIE-LABlab(24.76, 32.39, -51.39)
CIE-LCHlch(24.76, 60.75, 302.22°)
OKLaboklab(36.5% 0.0241 -0.1481)
OKLCHoklch(36.5% 0.15 279.3)
XYZxyz(6.8519, 4.3396, 24.5164)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C8A #838A2C
analogous
#2C548A #332C8A #622C8A
triadic
#332C8A #8A332C #2C8A33
tetradic
#332C8A #8A2C54 #838A2C #2C8A62
square
#332C8A #8A2C54 #838A2C #2C8A62
split-complementary
#332C8A #8A622C #548A2C
monochromatic
#110E2D #221D5C #332C8A #443BB8 #6B63CD

Accessibility & contrast

On white

11.24
#332C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#332C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C8A
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C8A#FFFFFF#000000##FFFFFF
##332C8A1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332c8a;
/* rgb */ color: rgb(51, 44, 138);
/* oklch */ color: oklch(36.5% 0.150 279.3);
Tailwind
colors: {
  custom: {
    50: '#7566ad',
    500: '#332c8a',
    950: '#000000',
  },
}
SCSS
$custom: #332c8a;
$custom-light: #7566ad;
$custom-dark: #000000;
JSON
{
  "hex": "#332c8a",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 244.468,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36504,
    "c": 0.15002,
    "h": 279.3
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#332C8A
secondary
#ADB45E
accent
#DB4DD0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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