#3A2D8D#3A2D8D

#3A2D8D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.152 H 282.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#3A2D8D
RGBrgb(58, 45, 141)
HSLhsl(248, 52%, 36%)
HSVhsv(248, 68%, 55%)
CMYKcmyk(58.9%, 68.1%, 0%, 44.7%)
CIE-LABlab(25.86, 33.93, -51.44)
CIE-LCHlch(25.86, 61.62, 303.41°)
OKLaboklab(37.53% 0.0326 -0.148)
OKLCHoklch(37.53% 0.152 282.4)
XYZxyz(7.4895, 4.6989, 25.7065)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D8D #808D2D
analogous
#2D508D #3A2D8D #6A2D8D
triadic
#3A2D8D #8D3A2D #2D8D3A
tetradic
#3A2D8D #8D2D50 #808D2D #2D8D6A
square
#3A2D8D #8D2D50 #808D2D #2D8D6A
split-complementary
#3A2D8D #8D6A2D #508D2D
monochromatic
#140F30 #271E5F #3A2D8D #4D3CBB #7466CE

Accessibility & contrast

On white

10.83
#3A2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3A2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2D8D
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D8D#FFFFFF#000000##FFFFFF
##3A2D8D1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#0B4659
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a2d8d;
/* rgb */ color: rgb(58, 45, 141);
/* oklch */ color: oklch(37.5% 0.152 282.4);
Tailwind
colors: {
  custom: {
    50: '#7967af',
    500: '#3a2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d8d;
$custom-light: #7967af;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d8d",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 248.125,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37528,
    "c": 0.15154,
    "h": 282.4
  },
  "luminance": 0.04699
}

Semantic roles & 50–950 ramp

primary
#3A2D8D
secondary
#A9B561
accent
#DB4DC8
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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