#3A2EC9#3A2EC9

#3A2EC9 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.6% C 0.225 H 275.1°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#3A2EC9
RGBrgb(58, 46, 201)
HSLhsl(245, 63%, 48%)
HSVhsv(245, 77%, 79%)
CMYKcmyk(71.1%, 77.1%, 0%, 21.2%)
CIE-LABlab(31.96, 52.59, -77.46)
CIE-LCHlch(31.96, 93.62, 304.17°)
OKLaboklab(43.65% 0.0202 -0.224)
OKLCHoklch(43.65% 0.225 275.1)
XYZxyz(13.2611, 7.0693, 55.9127)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EC9 #BDC92E
analogous
#2E6FC9 #3A2EC9 #872EC9
triadic
#3A2EC9 #C93A2E #2EC93A
tetradic
#3A2EC9 #C92E6F #BDC92E #2EC987
square
#3A2EC9 #C92E6F #BDC92E #2EC987
split-complementary
#3A2EC9 #C9872E #6FC92E
monochromatic
#1D1765 #2C2397 #3A2EC9 #655BD9 #938DE5

Accessibility & contrast

On white

8.70
#3A2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3A2EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EC9
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EC9#FFFFFF#000000##FFFFFF
##3A2EC91.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CD
Deuteranopia (green-blind)
#0044C6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a2ec9;
/* rgb */ color: rgb(58, 46, 201);
/* oklch */ color: oklch(43.6% 0.225 275.1);
Tailwind
colors: {
  custom: {
    50: '#866adb',
    500: '#3a2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ec9;
$custom-light: #866adb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ec9",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 244.645,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43645,
    "c": 0.22489,
    "h": 275.1
  },
  "luminance": 0.07071
}

Semantic roles & 50–950 ramp

primary
#3A2EC9
secondary
#C9CF84
accent
#E642D9
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3A2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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