#332B8E#332B8E

#332B8E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.157 H 279.0°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#332B8E
RGBrgb(51, 43, 142)
HSLhsl(245, 54%, 36%)
HSVhsv(245, 70%, 56%)
CMYKcmyk(64.1%, 69.7%, 0%, 44.3%)
CIE-LABlab(24.90, 34.37, -53.65)
CIE-LCHlch(24.90, 63.72, 302.65°)
OKLaboklab(36.72% 0.0244 -0.1547)
OKLCHoklch(36.72% 0.157 279)
XYZxyz(7.1100, 4.3840, 26.0575)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B8E #868E2B
analogous
#2B558E #332B8E #652B8E
triadic
#332B8E #8E332B #2B8E33
tetradic
#332B8E #8E2B55 #868E2B #2B8E65
square
#332B8E #8E2B55 #868E2B #2B8E65
split-complementary
#332B8E #8E652B #558E2B
monochromatic
#110F30 #221D5F #332B8E #4439BD #6C63D0

Accessibility & contrast

On white

11.19
#332B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#332B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B8E
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B8E#FFFFFF#000000##FFFFFF
##332B8E1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332b8e;
/* rgb */ color: rgb(51, 43, 142);
/* oklch */ color: oklch(36.7% 0.157 279.0);
Tailwind
colors: {
  custom: {
    50: '#7665b0',
    500: '#332b8e',
    950: '#000000',
  },
}
SCSS
$custom: #332b8e;
$custom-light: #7665b0;
$custom-dark: #000000;
JSON
{
  "hex": "#332b8e",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 244.848,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36717,
    "c": 0.15661,
    "h": 279
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#332B8E
secondary
#AFB65F
accent
#DD4BD1
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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