#3A2AA0#3A2AA0

#3A2AA0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.179 H 280.2°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#3A2AA0
RGBrgb(58, 42, 160)
HSLhsl(248, 58%, 40%)
HSVhsv(248, 74%, 63%)
CMYKcmyk(63.8%, 73.8%, 0%, 37.3%)
CIE-LABlab(27.00, 41.85, -61.24)
CIE-LCHlch(27.00, 74.17, 304.35°)
OKLaboklab(38.89% 0.0317 -0.1767)
OKLCHoklch(38.89% 0.179 280.2)
XYZxyz(8.9160, 5.0929, 33.7641)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2AA0 #90A02A
analogous
#2A55A0 #3A2AA0 #752AA0
triadic
#3A2AA0 #A03A2A #2AA03A
tetradic
#3A2AA0 #A02A55 #90A02A #2AA075
square
#3A2AA0 #A02A55 #90A02A #2AA075
split-complementary
#3A2AA0 #A0752A #55A02A
monochromatic
#17113F #281D70 #3A2AA0 #4F3CCC #7B6CD8

Accessibility & contrast

On white

10.40
#3A2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3A2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2AA0
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2AA0#FFFFFF#000000##FFFFFF
##3A2AA01.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a2aa0;
/* rgb */ color: rgb(58, 42, 160);
/* oklch */ color: oklch(38.9% 0.179 280.2);
Tailwind
colors: {
  custom: {
    50: '#7d66bd',
    500: '#3a2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #3a2aa0;
$custom-light: #7d66bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2aa0",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 248.136,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38887,
    "c": 0.17949,
    "h": 280.2
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

primary
#3A2AA0
secondary
#B3BF67
accent
#E246CD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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