#332C8D#332C8D

#332C8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.154 H 278.9°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#332C8D
RGBrgb(51, 44, 141)
HSLhsl(244, 52%, 36%)
HSVhsv(244, 69%, 55%)
CMYKcmyk(63.8%, 68.8%, 0%, 44.7%)
CIE-LABlab(25.04, 33.41, -52.81)
CIE-LCHlch(25.04, 62.49, 302.32°)
OKLaboklab(36.79% 0.0238 -0.1522)
OKLCHoklch(36.79% 0.154 278.9)
XYZxyz(7.0721, 4.4277, 25.6761)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C8D #868D2C
analogous
#2C568D #332C8D #642C8D
triadic
#332C8D #8D332C #2C8D33
tetradic
#332C8D #8D2C56 #868D2C #2C8D64
square
#332C8D #8D2C56 #868D2C #2C8D64
split-complementary
#332C8D #8D642C #568D2C
monochromatic
#110F30 #221D5E #332C8D #443BBC #6C65CF

Accessibility & contrast

On white

11.14
#332C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#332C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C8D
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C8D#FFFFFF#000000##FFFFFF
##332C8D1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332c8d;
/* rgb */ color: rgb(51, 44, 141);
/* oklch */ color: oklch(36.8% 0.154 278.9);
Tailwind
colors: {
  custom: {
    50: '#7666af',
    500: '#332c8d',
    950: '#000000',
  },
}
SCSS
$custom: #332c8d;
$custom-light: #7666af;
$custom-dark: #000000;
JSON
{
  "hex": "#332c8d",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 244.33,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36786,
    "c": 0.15406,
    "h": 278.9
  },
  "luminance": 0.04428
}

Semantic roles & 50–950 ramp

primary
#332C8D
secondary
#AFB560
accent
#DC4CD1
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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