#332DA3#332DA3

#332DA3 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.182 H 276.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#332DA3
RGBrgb(51, 45, 163)
HSLhsl(243, 57%, 41%)
HSVhsv(243, 72%, 64%)
CMYKcmyk(68.7%, 72.4%, 0%, 36.1%)
CIE-LABlab(27.36, 40.24, -62.48)
CIE-LCHlch(27.36, 74.31, 302.79°)
OKLaboklab(39.1% 0.0195 -0.1805)
OKLCHoklch(39.1% 0.182 276.2)
XYZxyz(8.9123, 5.2241, 35.1819)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332DA3 #9DA32D
analogous
#2D62A3 #332DA3 #6E2DA3
triadic
#332DA3 #A3332D #2DA333
tetradic
#332DA3 #A32D62 #9DA32D #2DA36E
square
#332DA3 #A32D62 #9DA32D #2DA36E
split-complementary
#332DA3 #A36E2D #62A32D
monochromatic
#151343 #242073 #332DA3 #4942CB #7772D8

Accessibility & contrast

On white

10.27
#332DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#332DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332DA3
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332DA3#FFFFFF#000000##FFFFFF
##332DA31.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332da3;
/* rgb */ color: rgb(51, 45, 163);
/* oklch */ color: oklch(39.1% 0.182 276.2);
Tailwind
colors: {
  custom: {
    50: '#7b67bf',
    500: '#332da3',
    950: '#000000',
  },
}
SCSS
$custom: #332da3;
$custom-light: #7b67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332da3",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 243.051,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39098,
    "c": 0.18156,
    "h": 276.2
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#332DA3
secondary
#BBC06C
accent
#E048D8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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