#3A2EB2#3A2EB2

#3A2EB2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.3% C 0.198 H 277.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#3A2EB2
RGBrgb(58, 46, 178)
HSLhsl(245, 59%, 44%)
HSVhsv(245, 74%, 70%)
CMYKcmyk(67.4%, 74.2%, 0%, 30.2%)
CIE-LABlab(29.58, 45.37, -67.82)
CIE-LCHlch(29.58, 81.60, 303.78°)
OKLaboklab(41.26% 0.0252 -0.1959)
OKLCHoklch(41.26% 0.198 277.3)
XYZxyz(10.7552, 6.0669, 42.7151)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EB2 #A6B22E
analogous
#2E64B2 #3A2EB2 #7C2EB2
triadic
#3A2EB2 #B23A2E #2EB23A
tetradic
#3A2EB2 #B22E64 #A6B22E #2EB27C
square
#3A2EB2 #B22E64 #A6B22E #2EB27C
split-complementary
#3A2EB2 #B27C2E #64B22E
monochromatic
#1A1551 #2A2181 #3A2EB2 #584CD1 #867DDD

Accessibility & contrast

On white

9.49
#3A2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3A2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EB2
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EB2#FFFFFF#000000##FFFFFF
##3A2EB21.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0040B0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a2eb2;
/* rgb */ color: rgb(58, 46, 178);
/* oklch */ color: oklch(41.3% 0.198 277.3);
Tailwind
colors: {
  custom: {
    50: '#8169ca',
    500: '#3a2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #3a2eb2;
$custom-light: #8169ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2eb2",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 245.455,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41257,
    "c": 0.19755,
    "h": 277.3
  },
  "luminance": 0.06068
}

Semantic roles & 50–950 ramp

primary
#3A2EB2
secondary
#BFC676
accent
#E246D4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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