#332EA0#332EA0

#332EA0 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.177 H 276.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#332EA0
RGBrgb(51, 46, 160)
HSLhsl(243, 55%, 40%)
HSVhsv(243, 71%, 63%)
CMYKcmyk(68.1%, 71.2%, 0%, 37.3%)
CIE-LABlab(27.28, 38.64, -60.79)
CIE-LCHlch(27.28, 72.03, 302.44°)
OKLaboklab(38.95% 0.0194 -0.1756)
OKLCHoklch(38.95% 0.177 276.3)
XYZxyz(8.6853, 5.1951, 33.7959)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA0 #9BA02E
analogous
#2E62A0 #332EA0 #6C2EA0
triadic
#332EA0 #A0332E #2EA033
tetradic
#332EA0 #A02E62 #9BA02E #2EA06C
square
#332EA0 #A02E62 #9BA02E #2EA06C
split-complementary
#332EA0 #A06C2E #62A02E
monochromatic
#151341 #242070 #332EA0 #4842C9 #7672D6

Accessibility & contrast

On white

10.30
#332EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#332EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA0
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA0#FFFFFF#000000##FFFFFF
##332EA01.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332ea0;
/* rgb */ color: rgb(51, 46, 160);
/* oklch */ color: oklch(39.0% 0.177 276.3);
Tailwind
colors: {
  custom: {
    50: '#7a68bd',
    500: '#332ea0',
    950: '#000000',
  },
}
SCSS
$custom: #332ea0;
$custom-light: #7a68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea0",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 242.632,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38951,
    "c": 0.17665,
    "h": 276.3
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#332EA0
secondary
#BABE6C
accent
#DF49D8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #332EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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