#332D9E#332D9E

#332D9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.175 H 276.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#332D9E
RGBrgb(51, 45, 158)
HSLhsl(243, 56%, 40%)
HSVhsv(243, 72%, 62%)
CMYKcmyk(67.7%, 71.5%, 0%, 38%)
CIE-LABlab(26.87, 38.57, -60.25)
CIE-LCHlch(26.87, 71.53, 302.62°)
OKLaboklab(38.6% 0.0204 -0.174)
OKLCHoklch(38.6% 0.175 276.7)
XYZxyz(8.4732, 5.0485, 32.8690)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D9E #989E2D
analogous
#2D5F9E #332D9E #6C2D9E
triadic
#332D9E #9E332D #2D9E33
tetradic
#332D9E #9E2D5F #989E2D #2D9E6C
square
#332D9E #9E2D5F #989E2D #2D9E6C
split-complementary
#332D9E #9E6C2D #5F9E2D
monochromatic
#14123F #241F6E #332D9E #4740C9 #756FD6

Accessibility & contrast

On white

10.45
#332D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#332D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D9E
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D9E#FFFFFF#000000##FFFFFF
##332D9E1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332d9e;
/* rgb */ color: rgb(51, 45, 158);
/* oklch */ color: oklch(38.6% 0.175 276.7);
Tailwind
colors: {
  custom: {
    50: '#7a67bc',
    500: '#332d9e',
    950: '#000000',
  },
}
SCSS
$custom: #332d9e;
$custom-light: #7a67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#332d9e",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 243.186,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38597,
    "c": 0.17519,
    "h": 276.7
  },
  "luminance": 0.05049
}

Semantic roles & 50–950 ramp

primary
#332D9E
secondary
#B9BD69
accent
#DF49D7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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