#3A2EA4#3A2EA4

#3A2EA4 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.180 H 278.9°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#3A2EA4
RGBrgb(58, 46, 164)
HSLhsl(246, 56%, 41%)
HSVhsv(246, 72%, 64%)
CMYKcmyk(64.6%, 72%, 0%, 35.7%)
CIE-LABlab(28.20, 40.86, -61.68)
CIE-LCHlch(28.20, 73.99, 303.52°)
OKLaboklab(39.86% 0.028 -0.178)
OKLCHoklch(39.86% 0.18 278.9)
XYZxyz(9.4206, 5.5331, 35.6863)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EA4 #98A42E
analogous
#2E5DA4 #3A2EA4 #752EA4
triadic
#3A2EA4 #A43A2E #2EA43A
tetradic
#3A2EA4 #A42E5D #98A42E #2EA475
square
#3A2EA4 #A42E5D #98A42E #2EA475
split-complementary
#3A2EA4 #A4752E #5DA42E
monochromatic
#181344 #292174 #3A2EA4 #5245CB #7E74D8

Accessibility & contrast

On white

9.97
#3A2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3A2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EA4
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EA4#FFFFFF#000000##FFFFFF
##3A2EA41.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a2ea4;
/* rgb */ color: rgb(58, 46, 164);
/* oklch */ color: oklch(39.9% 0.180 278.9);
Tailwind
colors: {
  custom: {
    50: '#7e68c0',
    500: '#3a2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ea4;
$custom-light: #7e68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ea4",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 246.102,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39862,
    "c": 0.18019,
    "h": 278.9
  },
  "luminance": 0.05534
}

Semantic roles & 50–950 ramp

primary
#3A2EA4
secondary
#B8C06E
accent
#DF48D0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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