#332DA8#332DA8

#332DA8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.188 H 275.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#332DA8
RGBrgb(51, 45, 168)
HSLhsl(243, 58%, 42%)
HSVhsv(243, 73%, 66%)
CMYKcmyk(69.6%, 73.2%, 0%, 34.1%)
CIE-LABlab(27.86, 41.90, -64.67)
CIE-LCHlch(27.86, 77.06, 302.94°)
OKLaboklab(39.6% 0.0186 -0.1869)
OKLCHoklch(39.6% 0.188 275.7)
XYZxyz(9.3692, 5.4069, 37.5881)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DA8 #A2A82D
analogous
#2D65A8 #332DA8 #712DA8
triadic
#332DA8 #A8332D #2DA833
tetradic
#332DA8 #A82D65 #A2A82D #2DA871
square
#332DA8 #A82D65 #A2A82D #2DA871
split-complementary
#332DA8 #A8712D #65A82D
monochromatic
#161347 #242078 #332DA8 #4C45CD #7A75DA

Accessibility & contrast

On white

10.09
#332DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#332DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DA8
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DA8#FFFFFF#000000##FFFFFF
##332DA81.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332da8;
/* rgb */ color: rgb(51, 45, 168);
/* oklch */ color: oklch(39.6% 0.188 275.7);
Tailwind
colors: {
  custom: {
    50: '#7c68c3',
    500: '#332da8',
    950: '#000000',
  },
}
SCSS
$custom: #332da8;
$custom-light: #7c68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#332da8",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 242.927,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39604,
    "c": 0.18784,
    "h": 275.7
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#332DA8
secondary
#BEC26F
accent
#E147D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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