#332B8D#332B8D

#332B8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.155 H 279.1°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#332B8D
RGBrgb(51, 43, 141)
HSLhsl(245, 53%, 36%)
HSVhsv(245, 70%, 55%)
CMYKcmyk(63.8%, 69.5%, 0%, 44.7%)
CIE-LABlab(24.81, 34.03, -53.18)
CIE-LCHlch(24.81, 63.14, 302.62°)
OKLaboklab(36.62% 0.0246 -0.1533)
OKLCHoklch(36.62% 0.155 279.1)
XYZxyz(7.0353, 4.3541, 25.6638)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B8D #858D2B
analogous
#2B548D #332B8D #642B8D
triadic
#332B8D #8D332B #2B8D33
tetradic
#332B8D #8D2B54 #858D2B #2B8D64
square
#332B8D #8D2B54 #858D2B #2B8D64
split-complementary
#332B8D #8D642B #548D2B
monochromatic
#110E2F #221D5E #332B8D #4439BC #6C63CF

Accessibility & contrast

On white

11.22
#332B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332B8D
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B8D#FFFFFF#000000##FFFFFF
##332B8D1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.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: #332b8d;
/* rgb */ color: rgb(51, 43, 141);
/* oklch */ color: oklch(36.6% 0.155 279.1);
Tailwind
colors: {
  custom: {
    50: '#7665af',
    500: '#332b8d',
    950: '#000000',
  },
}
SCSS
$custom: #332b8d;
$custom-light: #7665af;
$custom-dark: #000000;
JSON
{
  "hex": "#332b8d",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 244.898,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36621,
    "c": 0.15528,
    "h": 279.1
  },
  "luminance": 0.04355
}

Semantic roles & 50–950 ramp

primary
#332B8D
secondary
#AEB65E
accent
#DD4BD1
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #332B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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