#3A2D9E#3A2D9E

#3A2D9E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.174 H 279.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#3A2D9E
RGBrgb(58, 45, 158)
HSLhsl(247, 56%, 40%)
HSVhsv(247, 72%, 62%)
CMYKcmyk(63.3%, 71.5%, 0%, 38%)
CIE-LABlab(27.42, 39.49, -59.33)
CIE-LCHlch(27.42, 71.27, 303.65°)
OKLaboklab(39.13% 0.0299 -0.1711)
OKLCHoklch(39.13% 0.174 279.9)
XYZxyz(8.8529, 5.2443, 32.8868)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D9E #919E2D
analogous
#2D589E #3A2D9E #732D9E
triadic
#3A2D9E #9E3A2D #2D9E3A
tetradic
#3A2D9E #9E2D58 #919E2D #2D9E73
square
#3A2D9E #9E2D58 #919E2D #2D9E73
split-complementary
#3A2D9E #9E732D #589E2D
monochromatic
#17123F #291F6E #3A2D9E #4F40C9 #7B6FD6

Accessibility & contrast

On white

10.25
#3A2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2D9E
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D9E#FFFFFF#000000##FFFFFF
##3A2D9E1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a2d9e;
/* rgb */ color: rgb(58, 45, 158);
/* oklch */ color: oklch(39.1% 0.174 279.9);
Tailwind
colors: {
  custom: {
    50: '#7d67bc',
    500: '#3a2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d9e;
$custom-light: #7d67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d9e",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 246.903,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39128,
    "c": 0.1737,
    "h": 279.9
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#3A2D9E
secondary
#B4BD69
accent
#DF49CE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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