#3A2A97#3A2A97

#3A2A97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.168 H 281.5°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#3A2A97
RGBrgb(58, 42, 151)
HSLhsl(249, 56%, 38%)
HSVhsv(249, 72%, 59%)
CMYKcmyk(61.6%, 72.2%, 0%, 40.8%)
CIE-LABlab(26.13, 38.97, -57.17)
CIE-LCHlch(26.13, 69.19, 304.28°)
OKLaboklab(38% 0.0335 -0.1648)
OKLCHoklch(38% 0.168 281.5)
XYZxyz(8.1571, 4.7893, 29.7667)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A97 #87972A
analogous
#2A5197 #3A2A97 #702A97
triadic
#3A2A97 #973A2A #2A973A
tetradic
#3A2A97 #972A51 #87972A #2A9770
square
#3A2A97 #972A51 #87972A #2A9770
split-complementary
#3A2A97 #97702A #51972A
monochromatic
#150F37 #281D67 #3A2A97 #4C37C7 #7767D5

Accessibility & contrast

On white

10.73
#3A2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3A2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2A97
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A97#FFFFFF#000000##FFFFFF
##3A2A971.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a2a97;
/* rgb */ color: rgb(58, 42, 151);
/* oklch */ color: oklch(38.0% 0.168 281.5);
Tailwind
colors: {
  custom: {
    50: '#7c65b7',
    500: '#3a2a97',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a97;
$custom-light: #7c65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a97",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 248.807,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38002,
    "c": 0.16816,
    "h": 281.5
  },
  "luminance": 0.0479
}

Semantic roles & 50–950 ramp

primary
#3A2A97
secondary
#AEBB62
accent
#E048C9
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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