#332EA8#332EA8

#332EA8 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.187 H 275.5°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#332EA8
RGBrgb(51, 46, 168)
HSLhsl(242, 57%, 42%)
HSVhsv(242, 73%, 66%)
CMYKcmyk(69.6%, 72.6%, 0%, 34.1%)
CIE-LABlab(28.07, 41.32, -64.33)
CIE-LCHlch(28.07, 76.46, 302.72°)
OKLaboklab(39.75% 0.018 -0.1859)
OKLCHoklch(39.75% 0.187 275.5)
XYZxyz(9.4078, 5.4841, 37.6009)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332EA8 #A3A82E
analogous
#2E66A8 #332EA8 #702EA8
triadic
#332EA8 #A8332E #2EA833
tetradic
#332EA8 #A82E66 #A3A82E #2EA870
square
#332EA8 #A82E66 #A3A82E #2EA870
split-complementary
#332EA8 #A8702E #66A82E
monochromatic
#161448 #242178 #332EA8 #4C47CD #7B77DA

Accessibility & contrast

On white

10.01
#332EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#332EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332EA8
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332EA8#FFFFFF#000000##FFFFFF
##332EA81.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332ea8;
/* rgb */ color: rgb(51, 46, 168);
/* oklch */ color: oklch(39.8% 0.187 275.5);
Tailwind
colors: {
  custom: {
    50: '#7c68c3',
    500: '#332ea8',
    950: '#000000',
  },
}
SCSS
$custom: #332ea8;
$custom-light: #7c68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#332ea8",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 242.459,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39753,
    "c": 0.1868,
    "h": 275.5
  },
  "luminance": 0.05485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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