#3A2EA7#3A2EA7

#3A2EA7 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.2% C 0.184 H 278.6°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#3A2EA7
RGBrgb(58, 46, 167)
HSLhsl(246, 57%, 42%)
HSVhsv(246, 72%, 65%)
CMYKcmyk(65.3%, 72.5%, 0%, 34.5%)
CIE-LABlab(28.49, 41.84, -63.02)
CIE-LCHlch(28.49, 75.64, 303.58°)
OKLaboklab(40.16% 0.0275 -0.1819)
OKLCHoklch(40.16% 0.184 278.6)
XYZxyz(9.6947, 5.6428, 37.1300)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EA7 #9BA72E
analogous
#2E5FA7 #3A2EA7 #772EA7
triadic
#3A2EA7 #A73A2E #2EA73A
tetradic
#3A2EA7 #A72E5F #9BA72E #2EA777
square
#3A2EA7 #A72E5F #9BA72E #2EA777
split-complementary
#3A2EA7 #A7772E #5FA72E
monochromatic
#191447 #292177 #3A2EA7 #5346CC #8076D9

Accessibility & contrast

On white

9.86
#3A2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3A2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EA7
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EA7#FFFFFF#000000##FFFFFF
##3A2EA71.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a2ea7;
/* rgb */ color: rgb(58, 46, 167);
/* oklch */ color: oklch(40.2% 0.184 278.6);
Tailwind
colors: {
  custom: {
    50: '#7e68c2',
    500: '#3a2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ea7;
$custom-light: #7e68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ea7",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 245.95,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40157,
    "c": 0.18396,
    "h": 278.6
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#3A2EA7
secondary
#B9C170
accent
#E048D1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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