#332BAC#332BAC

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

Color values

HEX#332BAC
RGBrgb(51, 43, 172)
HSLhsl(244, 60%, 42%)
HSVhsv(244, 75%, 67%)
CMYKcmyk(70.3%, 75%, 0%, 32.5%)
CIE-LABlab(27.87, 44.35, -67.07)
CIE-LCHlch(27.87, 80.40, 303.47°)
OKLaboklab(39.73% 0.019 -0.1939)
OKLCHoklch(39.73% 0.195 275.6)
XYZxyz(9.6731, 5.4092, 39.5560)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BAC #A4AC2B
analogous
#2B64AC #332BAC #742BAC
triadic
#332BAC #AC332B #2BAC33
tetradic
#332BAC #AC2B64 #A4AC2B #2BAC74
square
#332BAC #AC2B64 #A4AC2B #2BAC74
split-complementary
#332BAC #AC742B #64AC2B
monochromatic
#16134A #241F7B #332BAC #4D44D0 #7B75DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332BAC#FFFFFF#000000##FFFFFF
##332BAC1.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)
#0047B0
Deuteranopia (green-blind)
#003CAA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332bac;
/* rgb */ color: rgb(51, 43, 172);
/* oklch */ color: oklch(39.7% 0.195 275.6);
Tailwind
colors: {
  custom: {
    50: '#7d66c6',
    500: '#332bac',
    950: '#000000',
  },
}
SCSS
$custom: #332bac;
$custom-light: #7d66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#332bac",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 243.721,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39732,
    "c": 0.19481,
    "h": 275.6
  },
  "luminance": 0.0541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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