#3A2A9E#3A2A9E

#3A2A9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.177 H 280.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#3A2A9E
RGBrgb(58, 42, 158)
HSLhsl(248, 58%, 39%)
HSVhsv(248, 73%, 62%)
CMYKcmyk(63.3%, 73.4%, 0%, 38%)
CIE-LABlab(26.80, 41.21, -60.34)
CIE-LCHlch(26.80, 73.07, 304.33°)
OKLaboklab(38.69% 0.0321 -0.1741)
OKLCHoklch(38.69% 0.177 280.4)
XYZxyz(8.7425, 5.0234, 32.8500)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A9E #8E9E2A
analogous
#2A549E #3A2A9E #742A9E
triadic
#3A2A9E #9E3A2A #2A9E3A
tetradic
#3A2A9E #9E2A54 #8E9E2A #2A9E74
square
#3A2A9E #9E2A54 #8E9E2A #2A9E74
split-complementary
#3A2A9E #9E742A #549E2A
monochromatic
#17103D #281D6E #3A2A9E #4E3ACB #7A6BD8

Accessibility & contrast

On white

10.47
#3A2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3A2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2A9E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A9E#FFFFFF#000000##FFFFFF
##3A2A9E1.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a2a9e;
/* rgb */ color: rgb(58, 42, 158);
/* oklch */ color: oklch(38.7% 0.177 280.4);
Tailwind
colors: {
  custom: {
    50: '#7d66bc',
    500: '#3a2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a9e;
$custom-light: #7d66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a9e",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 248.276,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38688,
    "c": 0.177,
    "h": 280.4
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#3A2A9E
secondary
#B2BE66
accent
#E147CC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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