#332BAA#332BAA

#332BAA is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.5% C 0.192 H 275.8°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#332BAA
RGBrgb(51, 43, 170)
HSLhsl(244, 60%, 42%)
HSVhsv(244, 75%, 67%)
CMYKcmyk(70%, 74.7%, 0%, 33.3%)
CIE-LABlab(27.66, 43.69, -66.21)
CIE-LCHlch(27.66, 79.33, 303.42°)
OKLaboklab(39.52% 0.0194 -0.1914)
OKLCHoklch(39.52% 0.192 275.8)
XYZxyz(9.4824, 5.3330, 38.5521)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BAA #A2AA2B
analogous
#2B62AA #332BAA #732BAA
triadic
#332BAA #AA332B #2BAA33
tetradic
#332BAA #AA2B62 #A2AA2B #2BAA73
square
#332BAA #AA2B62 #A2AA2B #2BAA73
split-complementary
#332BAA #AA732B #62AA2B
monochromatic
#161248 #241F79 #332BAA #4C43CF #7A74DC

Accessibility & contrast

On white

10.16
#332BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#332BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332BAA
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BAA#FFFFFF#000000##FFFFFF
##332BAA1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332baa;
/* rgb */ color: rgb(51, 43, 170);
/* oklch */ color: oklch(39.5% 0.192 275.8);
Tailwind
colors: {
  custom: {
    50: '#7c66c5',
    500: '#332baa',
    950: '#000000',
  },
}
SCSS
$custom: #332baa;
$custom-light: #7c66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#332baa",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 243.78,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39523,
    "c": 0.19237,
    "h": 275.8
  },
  "luminance": 0.05334
}

Semantic roles & 50–950 ramp

primary
#332BAA
secondary
#BEC36E
accent
#E345D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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