#3A2EA2#3A2EA2

#3A2EA2 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.178 H 279.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#3A2EA2
RGBrgb(58, 46, 162)
HSLhsl(246, 56%, 41%)
HSVhsv(246, 72%, 64%)
CMYKcmyk(64.2%, 71.6%, 0%, 36.5%)
CIE-LABlab(28.01, 40.21, -60.79)
CIE-LCHlch(28.01, 72.88, 303.49°)
OKLaboklab(39.67% 0.0284 -0.1754)
OKLCHoklch(39.67% 0.178 279.2)
XYZxyz(9.2414, 5.4614, 34.7426)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EA2 #96A22E
analogous
#2E5CA2 #3A2EA2 #742EA2
triadic
#3A2EA2 #A23A2E #2EA23A
tetradic
#3A2EA2 #A22E5C #96A22E #2EA274
square
#3A2EA2 #A22E5C #96A22E #2EA274
split-complementary
#3A2EA2 #A2742E #5CA22E
monochromatic
#181343 #292072 #3A2EA2 #5143CA #7D73D7

Accessibility & contrast

On white

10.04
#3A2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2EA2
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EA2#FFFFFF#000000##FFFFFF
##3A2EA21.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3a2ea2;
/* rgb */ color: rgb(58, 46, 162);
/* oklch */ color: oklch(39.7% 0.178 279.2);
Tailwind
colors: {
  custom: {
    50: '#7d68bf',
    500: '#3a2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ea2;
$custom-light: #7d68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ea2",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 246.207,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39667,
    "c": 0.17766,
    "h": 279.2
  },
  "luminance": 0.05462
}

Semantic roles & 50–950 ramp

primary
#3A2EA2
secondary
#B6BF6D
accent
#DF49D0
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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