#3A2EC2#3A2EC2

#3A2EC2 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.9% C 0.217 H 275.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#3A2EC2
RGBrgb(58, 46, 194)
HSLhsl(245, 62%, 47%)
HSVhsv(245, 76%, 76%)
CMYKcmyk(70.1%, 76.3%, 0%, 23.9%)
CIE-LABlab(31.22, 50.42, -74.58)
CIE-LCHlch(31.22, 90.02, 304.06°)
OKLaboklab(42.91% 0.0217 -0.2156)
OKLCHoklch(42.91% 0.217 275.8)
XYZxyz(12.4563, 6.7474, 51.6744)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EC2 #B6C22E
analogous
#2E6CC2 #3A2EC2 #842EC2
triadic
#3A2EC2 #C23A2E #2EC23A
tetradic
#3A2EC2 #C22E6C #B6C22E #2EC284
square
#3A2EC2 #C22E6C #B6C22E #2EC284
split-complementary
#3A2EC2 #C2842E #6CC22E
monochromatic
#1C175F #2B2291 #3A2EC2 #6156D7 #8F88E3

Accessibility & contrast

On white

8.94
#3A2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3A2EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EC2
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EC2#FFFFFF#000000##FFFFFF
##3A2EC21.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C6
Deuteranopia (green-blind)
#0043BF
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a2ec2;
/* rgb */ color: rgb(58, 46, 194);
/* oklch */ color: oklch(42.9% 0.217 275.8);
Tailwind
colors: {
  custom: {
    50: '#846ad6',
    500: '#3a2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ec2;
$custom-light: #846ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ec2",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 244.865,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.42907,
    "c": 0.21671,
    "h": 275.8
  },
  "luminance": 0.06749
}

Semantic roles & 50–950 ramp

primary
#3A2EC2
secondary
#C6CC7F
accent
#E543D8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #3A2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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