#332CA3#332CA3

#332CA3 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.183 H 276.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#332CA3
RGBrgb(51, 44, 163)
HSLhsl(244, 57%, 41%)
HSVhsv(244, 73%, 64%)
CMYKcmyk(68.7%, 73%, 0%, 36.1%)
CIE-LABlab(27.15, 40.82, -62.82)
CIE-LCHlch(27.15, 74.92, 303.02°)
OKLaboklab(38.95% 0.0202 -0.1815)
OKLCHoklch(38.95% 0.183 276.3)
XYZxyz(8.8746, 5.1487, 35.1693)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CA3 #9CA32C
analogous
#2C61A3 #332CA3 #6E2CA3
triadic
#332CA3 #A3332C #2CA333
tetradic
#332CA3 #A32C61 #9CA32C #2CA36E
square
#332CA3 #A32C61 #9CA32C #2CA36E
split-complementary
#332CA3 #A36E2C #61A32C
monochromatic
#151243 #241F73 #332CA3 #4941CC #7771D9

Accessibility & contrast

On white

10.34
#332CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#332CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332CA3
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332CA3#FFFFFF#000000##FFFFFF
##332CA31.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #332ca3;
/* rgb */ color: rgb(51, 44, 163);
/* oklch */ color: oklch(38.9% 0.183 276.3);
Tailwind
colors: {
  custom: {
    50: '#7b67bf',
    500: '#332ca3',
    950: '#000000',
  },
}
SCSS
$custom: #332ca3;
$custom-light: #7b67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#332ca3",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 243.529,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.18263,
    "h": 276.3
  },
  "luminance": 0.0515
}

Semantic roles & 50–950 ramp

primary
#332CA3
secondary
#BBC06B
accent
#E147D8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #332CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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