#332CAB#332CAB

#332CAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.8% C 0.193 H 275.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#332CAB
RGBrgb(51, 44, 171)
HSLhsl(243, 59%, 42%)
HSVhsv(243, 74%, 67%)
CMYKcmyk(70.2%, 74.3%, 0%, 32.9%)
CIE-LABlab(27.97, 43.46, -66.31)
CIE-LCHlch(27.97, 79.29, 303.24°)
OKLaboklab(39.77% 0.0186 -0.1917)
OKLCHoklch(39.77% 0.193 275.5)
XYZxyz(9.6142, 5.4445, 39.0644)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332CAB #A4AB2C
analogous
#2C65AB #332CAB #732CAB
triadic
#332CAB #AB332C #2CAB33
tetradic
#332CAB #AB2C65 #A4AB2C #2CAB73
square
#332CAB #AB2C65 #A4AB2C #2CAB73
split-complementary
#332CAB #AB732C #65AB2C
monochromatic
#16134A #241F7A #332CAB #4D45CF #7B76DC

Accessibility & contrast

On white

10.05
#332CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#332CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332CAB
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332CAB#FFFFFF#000000##FFFFFF
##332CAB1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #332cab;
/* rgb */ color: rgb(51, 44, 171);
/* oklch */ color: oklch(39.8% 0.193 275.5);
Tailwind
colors: {
  custom: {
    50: '#7c67c5',
    500: '#332cab',
    950: '#000000',
  },
}
SCSS
$custom: #332cab;
$custom-light: #7c67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#332cab",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 243.307,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39768,
    "c": 0.19259,
    "h": 275.5
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#332CAB
secondary
#BFC36F
accent
#E246DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #332CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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