#332BA8#332BA8

#332BA8 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.190 H 276.0°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#332BA8
RGBrgb(51, 43, 168)
HSLhsl(244, 59%, 41%)
HSVhsv(244, 74%, 66%)
CMYKcmyk(69.6%, 74.4%, 0%, 34.1%)
CIE-LABlab(27.46, 43.04, -65.34)
CIE-LCHlch(27.46, 78.25, 303.37°)
OKLaboklab(39.32% 0.0198 -0.1889)
OKLCHoklch(39.32% 0.19 276)
XYZxyz(9.2947, 5.2579, 37.5632)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332BA8 #A0A82B
analogous
#2B62A8 #332BA8 #722BA8
triadic
#332BA8 #A8332B #2BA833
tetradic
#332BA8 #A82B62 #A0A82B #2BA872
square
#332BA8 #A82B62 #A0A82B #2BA872
split-complementary
#332BA8 #A8722B #62A82B
monochromatic
#151247 #241F77 #332BA8 #4B42CF #7972DB

Accessibility & contrast

On white

10.23
#332BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332BA8
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332BA8#FFFFFF#000000##FFFFFF
##332BA81.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332ba8;
/* rgb */ color: rgb(51, 43, 168);
/* oklch */ color: oklch(39.3% 0.190 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c66c3',
    500: '#332ba8',
    950: '#000000',
  },
}
SCSS
$custom: #332ba8;
$custom-light: #7c66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#332ba8",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 243.84,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39316,
    "c": 0.18989,
    "h": 276
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#332BA8
secondary
#BDC26C
accent
#E245D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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