#3A2AA4#3A2AA4

#3A2AA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.184 H 279.6°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#3A2AA4
RGBrgb(58, 42, 164)
HSLhsl(248, 59%, 40%)
HSVhsv(248, 74%, 64%)
CMYKcmyk(64.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(27.39, 43.12, -63.01)
CIE-LCHlch(27.39, 76.35, 304.39°)
OKLaboklab(39.29% 0.0308 -0.1819)
OKLCHoklch(39.29% 0.184 279.6)
XYZxyz(9.2716, 5.2351, 35.6366)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2AA4 #94A42A
analogous
#2A57A4 #3A2AA4 #772AA4
triadic
#3A2AA4 #A43A2A #2AA43A
tetradic
#3A2AA4 #A42A57 #94A42A #2AA477
square
#3A2AA4 #A42A57 #94A42A #2AA477
split-complementary
#3A2AA4 #A4772A #57A42A
monochromatic
#181143 #291E73 #3A2AA4 #513ECD #7D6EDA

Accessibility & contrast

On white

10.26
#3A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3A2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2AA4
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2AA4#FFFFFF#000000##FFFFFF
##3A2AA41.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a2aa4;
/* rgb */ color: rgb(58, 42, 164);
/* oklch */ color: oklch(39.3% 0.184 279.6);
Tailwind
colors: {
  custom: {
    50: '#7e66c0',
    500: '#3a2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #3a2aa4;
$custom-light: #7e66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2aa4",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 247.869,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39287,
    "c": 0.18445,
    "h": 279.6
  },
  "luminance": 0.05236
}

Semantic roles & 50–950 ramp

primary
#3A2AA4
secondary
#B5C169
accent
#E245CE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

#3A2AA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva