#3A2EA1#3A2EA1

#3A2EA1 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.176 H 279.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#3A2EA1
RGBrgb(58, 46, 161)
HSLhsl(246, 56%, 41%)
HSVhsv(246, 71%, 63%)
CMYKcmyk(64%, 71.4%, 0%, 36.9%)
CIE-LABlab(27.92, 39.89, -60.34)
CIE-LCHlch(27.92, 72.33, 303.47°)
OKLaboklab(39.57% 0.0286 -0.1741)
OKLCHoklch(39.57% 0.176 279.3)
XYZxyz(9.1529, 5.4260, 34.2763)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EA1 #95A12E
analogous
#2E5BA1 #3A2EA1 #732EA1
triadic
#3A2EA1 #A13A2E #2EA13A
tetradic
#3A2EA1 #A12E5B #95A12E #2EA173
square
#3A2EA1 #A12E5B #95A12E #2EA173
split-complementary
#3A2EA1 #A1732E #5BA12E
monochromatic
#181342 #292071 #3A2EA1 #5143C9 #7D73D7

Accessibility & contrast

On white

10.07
#3A2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#3A2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EA1
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EA1#FFFFFF#000000##FFFFFF
##3A2EA11.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3a2ea1;
/* rgb */ color: rgb(58, 46, 161);
/* oklch */ color: oklch(39.6% 0.176 279.3);
Tailwind
colors: {
  custom: {
    50: '#7d68be',
    500: '#3a2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ea1;
$custom-light: #7d68be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ea1",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 246.261,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.3957,
    "c": 0.17639,
    "h": 279.3
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#3A2EA1
secondary
#B6BE6C
accent
#DF49CF
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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