#332CA8#332CA8

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

Color values

HEX#332CA8
RGBrgb(51, 44, 168)
HSLhsl(243, 58%, 42%)
HSVhsv(243, 74%, 66%)
CMYKcmyk(69.6%, 73.8%, 0%, 34.1%)
CIE-LABlab(27.66, 42.48, -65.01)
CIE-LCHlch(27.66, 77.66, 303.16°)
OKLaboklab(39.46% 0.0192 -0.1879)
OKLCHoklch(39.46% 0.189 275.8)
XYZxyz(9.3315, 5.3315, 37.5755)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CA8 #A1A82C
analogous
#2C63A8 #332CA8 #712CA8
triadic
#332CA8 #A8332C #2CA833
tetradic
#332CA8 #A82C63 #A1A82C #2CA871
square
#332CA8 #A82C63 #A1A82C #2CA871
split-complementary
#332CA8 #A8712C #63A82C
monochromatic
#161347 #241F78 #332CA8 #4B43CE #7A74DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332CA8#FFFFFF#000000##FFFFFF
##332CA81.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)
#0047AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #332ca8;
/* rgb */ color: rgb(51, 44, 168);
/* oklch */ color: oklch(39.5% 0.189 275.8);
Tailwind
colors: {
  custom: {
    50: '#7c67c3',
    500: '#332ca8',
    950: '#000000',
  },
}
SCSS
$custom: #332ca8;
$custom-light: #7c67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#332ca8",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 243.387,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39459,
    "c": 0.18888,
    "h": 275.8
  },
  "luminance": 0.05332
}

Semantic roles & 50–950 ramp

primary
#332CA8
secondary
#BDC26E
accent
#E246D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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