#3A2D97#3A2D97

#3A2D97 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.165 H 280.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#3A2D97
RGBrgb(58, 45, 151)
HSLhsl(247, 54%, 38%)
HSVhsv(247, 70%, 59%)
CMYKcmyk(61.6%, 70.2%, 0%, 40.8%)
CIE-LABlab(26.76, 37.21, -56.13)
CIE-LCHlch(26.76, 67.34, 303.54°)
OKLaboklab(38.46% 0.0311 -0.1617)
OKLCHoklch(38.46% 0.165 280.9)
XYZxyz(8.2675, 5.0101, 29.8035)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D97 #8A972D
analogous
#2D5597 #3A2D97 #6F2D97
triadic
#3A2D97 #973A2D #2D973A
tetradic
#3A2D97 #972D55 #8A972D #2D976F
square
#3A2D97 #972D55 #8A972D #2D976F
split-complementary
#3A2D97 #976F2D #55972D
monochromatic
#161139 #281F68 #3A2D97 #4D3CC5 #786BD3

Accessibility & contrast

On white

10.49
#3A2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2D97
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D97#FFFFFF#000000##FFFFFF
##3A2D971.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a2d97;
/* rgb */ color: rgb(58, 45, 151);
/* oklch */ color: oklch(38.5% 0.165 280.9);
Tailwind
colors: {
  custom: {
    50: '#7b67b7',
    500: '#3a2d97',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d97;
$custom-light: #7b67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d97",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 247.358,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38458,
    "c": 0.1647,
    "h": 280.9
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#3A2D97
secondary
#B0BA66
accent
#DD4ACB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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