#332D8F#332D8F

#332D8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.156 H 278.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#332D8F
RGBrgb(51, 45, 143)
HSLhsl(244, 52%, 37%)
HSVhsv(244, 69%, 56%)
CMYKcmyk(64.3%, 68.5%, 0%, 43.9%)
CIE-LABlab(25.45, 33.47, -53.37)
CIE-LCHlch(25.45, 63.00, 302.10°)
OKLaboklab(37.14% 0.0227 -0.1539)
OKLCHoklch(37.14% 0.156 278.4)
XYZxyz(7.2600, 4.5632, 26.4795)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D8F #898F2D
analogous
#2D588F #332D8F #642D8F
triadic
#332D8F #8F332D #2D8F33
tetradic
#332D8F #8F2D58 #898F2D #2D8F64
square
#332D8F #8F2D58 #898F2D #2D8F64
split-complementary
#332D8F #8F642D #588F2D
monochromatic
#121032 #221E60 #332D8F #443CBE #6E67CF

Accessibility & contrast

On white

10.98
#332D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#332D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D8F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D8F#FFFFFF#000000##FFFFFF
##332D8F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332d8f;
/* rgb */ color: rgb(51, 45, 143);
/* oklch */ color: oklch(37.1% 0.156 278.4);
Tailwind
colors: {
  custom: {
    50: '#7667b1',
    500: '#332d8f',
    950: '#000000',
  },
}
SCSS
$custom: #332d8f;
$custom-light: #7667b1;
$custom-dark: #000000;
JSON
{
  "hex": "#332d8f",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 243.673,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37142,
    "c": 0.15553,
    "h": 278.4
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#332D8F
secondary
#B1B662
accent
#DC4CD3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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