#3A2BA2#3A2BA2

#3A2BA2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.181 H 279.7°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#3A2BA2
RGBrgb(58, 43, 162)
HSLhsl(248, 58%, 40%)
HSVhsv(248, 73%, 64%)
CMYKcmyk(64.2%, 73.5%, 0%, 36.5%)
CIE-LABlab(27.39, 41.93, -61.80)
CIE-LCHlch(27.39, 74.68, 304.16°)
OKLaboklab(39.23% 0.0305 -0.1783)
OKLCHoklch(39.23% 0.181 279.7)
XYZxyz(9.1283, 5.2352, 34.7049)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2BA2 #93A22B
analogous
#2B57A2 #3A2BA2 #752BA2
triadic
#3A2BA2 #A23A2B #2BA23A
tetradic
#3A2BA2 #A22B57 #93A22B #2BA275
square
#3A2BA2 #A22B57 #93A22B #2BA275
split-complementary
#3A2BA2 #A2752B #57A22B
monochromatic
#171141 #291E72 #3A2BA2 #503ECC #7C6FD9

Accessibility & contrast

On white

10.26
#3A2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3A2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2BA2
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2BA2#FFFFFF#000000##FFFFFF
##3A2BA21.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a2ba2;
/* rgb */ color: rgb(58, 43, 162);
/* oklch */ color: oklch(39.2% 0.181 279.7);
Tailwind
colors: {
  custom: {
    50: '#7e66bf',
    500: '#3a2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ba2;
$custom-light: #7e66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ba2",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 247.563,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39228,
    "c": 0.18092,
    "h": 279.7
  },
  "luminance": 0.05236
}

Semantic roles & 50–950 ramp

primary
#3A2BA2
secondary
#B5C069
accent
#E147CE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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