#332EA5#332EA5

#332EA5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.183 H 275.8°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#332EA5
RGBrgb(51, 46, 165)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 72%, 65%)
CMYKcmyk(69.1%, 72.1%, 0%, 35.3%)
CIE-LABlab(27.77, 40.32, -63.01)
CIE-LCHlch(27.77, 74.81, 302.62°)
OKLaboklab(39.45% 0.0185 -0.1821)
OKLCHoklch(39.45% 0.183 275.8)
XYZxyz(9.1315, 5.3736, 36.1460)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA5 #A0A52E
analogous
#2E65A5 #332EA5 #6F2EA5
triadic
#332EA5 #A5332E #2EA533
tetradic
#332EA5 #A52E65 #A0A52E #2EA56F
square
#332EA5 #A52E65 #A0A52E #2EA56F
split-complementary
#332EA5 #A56F2E #65A52E
monochromatic
#151345 #242175 #332EA5 #4B45CB #7975D8

Accessibility & contrast

On white

10.12
#332EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#332EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA5
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA5#FFFFFF#000000##FFFFFF
##332EA51.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332ea5;
/* rgb */ color: rgb(51, 46, 165);
/* oklch */ color: oklch(39.5% 0.183 275.8);
Tailwind
colors: {
  custom: {
    50: '#7b68c1',
    500: '#332ea5',
    950: '#000000',
  },
}
SCSS
$custom: #332ea5;
$custom-light: #7b68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea5",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 242.521,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.3945,
    "c": 0.18301,
    "h": 275.8
  },
  "luminance": 0.05374
}

Semantic roles & 50–950 ramp

primary
#332EA5
secondary
#BDC06F
accent
#E048D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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