#332B8A#332B8A

#332B8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.151 H 279.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#332B8A
RGBrgb(51, 43, 138)
HSLhsl(245, 52%, 35%)
HSVhsv(245, 69%, 54%)
CMYKcmyk(63%, 68.8%, 0%, 45.9%)
CIE-LABlab(24.53, 33.01, -51.77)
CIE-LCHlch(24.53, 61.40, 302.53°)
OKLaboklab(36.34% 0.025 -0.1492)
OKLCHoklch(36.34% 0.151 279.5)
XYZxyz(6.8151, 4.2660, 24.5041)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B8A #828A2B
analogous
#2B528A #332B8A #632B8A
triadic
#332B8A #8A332B #2B8A33
tetradic
#332B8A #8A2B52 #828A2B #2B8A63
square
#332B8A #8A2B52 #828A2B #2B8A63
split-complementary
#332B8A #8A632B #528A2B
monochromatic
#110E2D #221C5B #332B8A #443AB9 #6B61CE

Accessibility & contrast

On white

11.33
#332B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#332B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B8A
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B8A#FFFFFF#000000##FFFFFF
##332B8A1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332b8a;
/* rgb */ color: rgb(51, 43, 138);
/* oklch */ color: oklch(36.3% 0.151 279.5);
Tailwind
colors: {
  custom: {
    50: '#7565ad',
    500: '#332b8a',
    950: '#000000',
  },
}
SCSS
$custom: #332b8a;
$custom-light: #7565ad;
$custom-dark: #000000;
JSON
{
  "hex": "#332b8a",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 245.053,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36336,
    "c": 0.15126,
    "h": 279.5
  },
  "luminance": 0.04267
}

Semantic roles & 50–950 ramp

primary
#332B8A
secondary
#ADB45D
accent
#DC4CD0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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