#3A2EA6#3A2EA6

#3A2EA6 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.183 H 278.7°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#3A2EA6
RGBrgb(58, 46, 166)
HSLhsl(246, 57%, 42%)
HSVhsv(246, 72%, 65%)
CMYKcmyk(65.1%, 72.3%, 0%, 34.9%)
CIE-LABlab(28.40, 41.51, -62.57)
CIE-LCHlch(28.40, 75.09, 303.56°)
OKLaboklab(40.06% 0.0276 -0.1806)
OKLCHoklch(40.06% 0.183 278.7)
XYZxyz(9.6026, 5.6059, 36.6450)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EA6 #9AA62E
analogous
#2E5EA6 #3A2EA6 #762EA6
triadic
#3A2EA6 #A63A2E #2EA63A
tetradic
#3A2EA6 #A62E5E #9AA62E #2EA676
square
#3A2EA6 #A62E5E #9AA62E #2EA676
split-complementary
#3A2EA6 #A6762E #5EA62E
monochromatic
#191346 #292176 #3A2EA6 #5346CC #7F76D9

Accessibility & contrast

On white

9.90
#3A2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3A2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EA6
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EA6#FFFFFF#000000##FFFFFF
##3A2EA61.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a2ea6;
/* rgb */ color: rgb(58, 46, 166);
/* oklch */ color: oklch(40.1% 0.183 278.7);
Tailwind
colors: {
  custom: {
    50: '#7e68c2',
    500: '#3a2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ea6;
$custom-light: #7e68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ea6",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 246,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40058,
    "c": 0.1827,
    "h": 278.7
  },
  "luminance": 0.05607
}

Semantic roles & 50–950 ramp

primary
#3A2EA6
secondary
#B9C16F
accent
#E048D1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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