#332C9E#332C9E

#332C9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.176 H 276.9°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#332C9E
RGBrgb(51, 44, 158)
HSLhsl(244, 56%, 40%)
HSVhsv(244, 72%, 62%)
CMYKcmyk(67.7%, 72.2%, 0%, 38%)
CIE-LABlab(26.66, 39.16, -60.60)
CIE-LCHlch(26.66, 72.15, 302.87°)
OKLaboklab(38.44% 0.0211 -0.175)
OKLCHoklch(38.44% 0.176 276.9)
XYZxyz(8.4355, 4.9731, 32.8565)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C9E #979E2C
analogous
#2C5E9E #332C9E #6C2C9E
triadic
#332C9E #9E332C #2C9E33
tetradic
#332C9E #9E2C5E #979E2C #2C9E6C
square
#332C9E #9E2C5E #979E2C #2C9E6C
split-complementary
#332C9E #9E6C2C #5E9E2C
monochromatic
#14113E #241F6E #332C9E #473EC9 #746ED7

Accessibility & contrast

On white

10.53
#332C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#332C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C9E
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C9E#FFFFFF#000000##FFFFFF
##332C9E1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #332c9e;
/* rgb */ color: rgb(51, 44, 158);
/* oklch */ color: oklch(38.4% 0.176 276.9);
Tailwind
colors: {
  custom: {
    50: '#7a66bc',
    500: '#332c9e',
    950: '#000000',
  },
}
SCSS
$custom: #332c9e;
$custom-light: #7a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#332c9e",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 243.684,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.17628,
    "h": 276.9
  },
  "luminance": 0.04974
}

Semantic roles & 50–950 ramp

primary
#332C9E
secondary
#B8BE68
accent
#E048D6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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