#3A2AA6#3A2AA6

#3A2AA6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.5% C 0.187 H 279.3°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#3A2AA6
RGBrgb(58, 42, 166)
HSLhsl(248, 60%, 41%)
HSVhsv(248, 75%, 65%)
CMYKcmyk(65.1%, 74.7%, 0%, 34.9%)
CIE-LABlab(27.59, 43.76, -63.89)
CIE-LCHlch(27.59, 77.44, 304.40°)
OKLaboklab(39.49% 0.0303 -0.1844)
OKLCHoklch(39.49% 0.187 279.3)
XYZxyz(9.4536, 5.3079, 36.5953)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2AA6 #96A62A
analogous
#2A58A6 #3A2AA6 #782AA6
triadic
#3A2AA6 #A63A2A #2AA63A
tetradic
#3A2AA6 #A62A58 #96A62A #2AA678
square
#3A2AA6 #A62A58 #96A62A #2AA678
split-complementary
#3A2AA6 #A6782A #58A62A
monochromatic
#181144 #291E75 #3A2AA6 #513FCE #7D70DB

Accessibility & contrast

On white

10.19
#3A2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3A2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2AA6
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2AA6#FFFFFF#000000##FFFFFF
##3A2AA61.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a2aa6;
/* rgb */ color: rgb(58, 42, 166);
/* oklch */ color: oklch(39.5% 0.187 279.3);
Tailwind
colors: {
  custom: {
    50: '#7f66c2',
    500: '#3a2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #3a2aa6;
$custom-light: #7f66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2aa6",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 247.742,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39489,
    "c": 0.18691,
    "h": 279.3
  },
  "luminance": 0.05309
}

Semantic roles & 50–950 ramp

primary
#3A2AA6
secondary
#B6C26A
accent
#E345CE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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