#332B8F#332B8F

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

Color values

HEX#332B8F
RGBrgb(51, 43, 143)
HSLhsl(245, 54%, 36%)
HSVhsv(245, 70%, 56%)
CMYKcmyk(64.3%, 69.9%, 0%, 43.9%)
CIE-LABlab(25.00, 34.71, -54.12)
CIE-LCHlch(25.00, 64.29, 302.68°)
OKLaboklab(36.81% 0.0243 -0.1561)
OKLCHoklch(36.81% 0.158 278.8)
XYZxyz(7.1855, 4.4142, 26.4546)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B8F #878F2B
analogous
#2B558F #332B8F #652B8F
triadic
#332B8F #8F332B #2B8F33
tetradic
#332B8F #8F2B55 #878F2B #2B8F65
square
#332B8F #8F2B55 #878F2B #2B8F65
split-complementary
#332B8F #8F652B #558F2B
monochromatic
#110F31 #221D60 #332B8F #4439BE #6D64D0

Accessibility & contrast

On white

11.15
#332B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332B8F
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B8F#FFFFFF#000000##FFFFFF
##332B8F1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332b8f;
/* rgb */ color: rgb(51, 43, 143);
/* oklch */ color: oklch(36.8% 0.158 278.8);
Tailwind
colors: {
  custom: {
    50: '#7665b1',
    500: '#332b8f',
    950: '#000000',
  },
}
SCSS
$custom: #332b8f;
$custom-light: #7665b1;
$custom-dark: #000000;
JSON
{
  "hex": "#332b8f",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 244.8,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36813,
    "c": 0.15794,
    "h": 278.8
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#332B8F
secondary
#B0B75F
accent
#DD4BD1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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