#3A2AA1#3A2AA1

#3A2AA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.181 H 280.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#3A2AA1
RGBrgb(58, 42, 161)
HSLhsl(248, 59%, 40%)
HSVhsv(248, 74%, 63%)
CMYKcmyk(64%, 73.9%, 0%, 36.9%)
CIE-LABlab(27.10, 42.17, -61.68)
CIE-LCHlch(27.10, 74.72, 304.36°)
OKLaboklab(38.99% 0.0314 -0.178)
OKLCHoklch(38.99% 0.181 280)
XYZxyz(9.0039, 5.1280, 34.2266)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2AA1 #91A12A
analogous
#2A56A1 #3A2AA1 #752AA1
triadic
#3A2AA1 #A13A2A #2AA13A
tetradic
#3A2AA1 #A12A56 #91A12A #2AA175
square
#3A2AA1 #A12A56 #91A12A #2AA175
split-complementary
#3A2AA1 #A1752A #56A12A
monochromatic
#171140 #291D70 #3A2AA1 #4F3CCC #7B6DD9

Accessibility & contrast

On white

10.37
#3A2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3A2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2AA1
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2AA1#FFFFFF#000000##FFFFFF
##3A2AA11.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a2aa1;
/* rgb */ color: rgb(58, 42, 161);
/* oklch */ color: oklch(39.0% 0.181 280.0);
Tailwind
colors: {
  custom: {
    50: '#7e66be',
    500: '#3a2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #3a2aa1;
$custom-light: #7e66be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2aa1",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 248.067,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38987,
    "c": 0.18074,
    "h": 280
  },
  "luminance": 0.05129
}

Semantic roles & 50–950 ramp

primary
#3A2AA1
secondary
#B4C067
accent
#E246CD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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