#3A2D9D#3A2D9D

#3A2D9D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.172 H 280.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#3A2D9D
RGBrgb(58, 45, 157)
HSLhsl(247, 55%, 40%)
HSVhsv(247, 71%, 62%)
CMYKcmyk(63.1%, 71.3%, 0%, 38.4%)
CIE-LABlab(27.32, 39.17, -58.87)
CIE-LCHlch(27.32, 70.71, 303.64°)
OKLaboklab(39.03% 0.03 -0.1698)
OKLCHoklch(39.03% 0.172 280)
XYZxyz(8.7672, 5.2100, 32.4354)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D9D #909D2D
analogous
#2D589D #3A2D9D #722D9D
triadic
#3A2D9D #9D3A2D #2D9D3A
tetradic
#3A2D9D #9D2D58 #909D2D #2D9D72
square
#3A2D9D #9D2D58 #909D2D #2D9D72
split-complementary
#3A2D9D #9D722D #589D2D
monochromatic
#17123E #281F6D #3A2D9D #4F3FC8 #7B6FD6

Accessibility & contrast

On white

10.28
#3A2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3A2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2D9D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D9D#FFFFFF#000000##FFFFFF
##3A2D9D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a2d9d;
/* rgb */ color: rgb(58, 45, 157);
/* oklch */ color: oklch(39.0% 0.172 280.0);
Tailwind
colors: {
  custom: {
    50: '#7d67bb',
    500: '#3a2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d9d;
$custom-light: #7d67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d9d",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 246.964,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39032,
    "c": 0.17242,
    "h": 280
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#3A2D9D
secondary
#B3BD69
accent
#DF49CD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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