#332EA7#332EA7

#332EA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.186 H 275.6°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#332EA7
RGBrgb(51, 46, 167)
HSLhsl(242, 57%, 42%)
HSVhsv(242, 72%, 65%)
CMYKcmyk(69.5%, 72.5%, 0%, 34.5%)
CIE-LABlab(27.97, 40.99, -63.89)
CIE-LCHlch(27.97, 75.91, 302.68°)
OKLaboklab(39.65% 0.0182 -0.1846)
OKLCHoklch(39.65% 0.186 275.6)
XYZxyz(9.3150, 5.4470, 37.1122)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA7 #A2A72E
analogous
#2E66A7 #332EA7 #702EA7
triadic
#332EA7 #A7332E #2EA733
tetradic
#332EA7 #A72E66 #A2A72E #2EA770
square
#332EA7 #A72E66 #A2A72E #2EA770
split-complementary
#332EA7 #A7702E #66A72E
monochromatic
#161447 #242177 #332EA7 #4C46CC #7A76D9

Accessibility & contrast

On white

10.05
#332EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#332EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA7
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA7#FFFFFF#000000##FFFFFF
##332EA71.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332ea7;
/* rgb */ color: rgb(51, 46, 167);
/* oklch */ color: oklch(39.7% 0.186 275.6);
Tailwind
colors: {
  custom: {
    50: '#7b68c2',
    500: '#332ea7',
    950: '#000000',
  },
}
SCSS
$custom: #332ea7;
$custom-light: #7b68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea7",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 242.479,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39651,
    "c": 0.18554,
    "h": 275.6
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#332EA7
secondary
#BEC170
accent
#E048DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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