#332BBA#332BBA

#332BBA is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.2% C 0.212 H 274.3°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#332BBA
RGBrgb(51, 43, 186)
HSLhsl(243, 62%, 45%)
HSVhsv(243, 77%, 73%)
CMYKcmyk(72.6%, 76.9%, 0%, 27.1%)
CIE-LABlab(29.35, 48.84, -72.97)
CIE-LCHlch(29.35, 87.81, 303.79°)
OKLaboklab(41.22% 0.016 -0.2111)
OKLCHoklch(41.22% 0.212 274.3)
XYZxyz(11.0891, 5.9756, 47.0139)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BBA #B2BA2B
analogous
#2B6ABA #332BBA #7B2BBA
triadic
#332BBA #BA332B #2BBA33
tetradic
#332BBA #BA2B6A #B2BA2B #2BBA7B
square
#332BBA #BA2B6A #B2BA2B #2BBA7B
split-complementary
#332BBA #BA7B2B #6ABA2B
monochromatic
#181457 #252088 #332BBA #544CD6 #847EE1

Accessibility & contrast

On white

9.57
#332BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#332BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332BBA
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BBA#FFFFFF#000000##FFFFFF
##332BBA1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #332bba;
/* rgb */ color: rgb(51, 43, 186);
/* oklch */ color: oklch(41.2% 0.212 274.3);
Tailwind
colors: {
  custom: {
    50: '#8067d0',
    500: '#332bba',
    950: '#000000',
  },
}
SCSS
$custom: #332bba;
$custom-light: #8067d0;
$custom-dark: #000000;
JSON
{
  "hex": "#332bba",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 243.357,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41215,
    "c": 0.21168,
    "h": 274.3
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#332BBA
secondary
#C5CA77
accent
#E642DC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #332BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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