#3A2C97#3A2C97

#3A2C97 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.166 H 281.1°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#3A2C97
RGBrgb(58, 44, 151)
HSLhsl(248, 55%, 38%)
HSVhsv(248, 71%, 59%)
CMYKcmyk(61.6%, 70.9%, 0%, 40.8%)
CIE-LABlab(26.55, 37.80, -56.48)
CIE-LCHlch(26.55, 67.97, 303.80°)
OKLaboklab(38.3% 0.0319 -0.1628)
OKLCHoklch(38.3% 0.166 281.1)
XYZxyz(8.2298, 4.9347, 29.7910)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2C97 #89972C
analogous
#2C5497 #3A2C97 #6F2C97
triadic
#3A2C97 #973A2C #2C973A
tetradic
#3A2C97 #972C54 #89972C #2C976F
square
#3A2C97 #972C54 #89972C #2C976F
split-complementary
#3A2C97 #976F2C #54972C
monochromatic
#161038 #281E68 #3A2C97 #4D3AC6 #786AD4

Accessibility & contrast

On white

10.57
#3A2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3A2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2C97
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2C97#FFFFFF#000000##FFFFFF
##3A2C971.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.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: #3a2c97;
/* rgb */ color: rgb(58, 44, 151);
/* oklch */ color: oklch(38.3% 0.166 281.1);
Tailwind
colors: {
  custom: {
    50: '#7b67b7',
    500: '#3a2c97',
    950: '#000000',
  },
}
SCSS
$custom: #3a2c97;
$custom-light: #7b67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2c97",
  "rgb": {
    "r": 58,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 247.85,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38303,
    "c": 0.16587,
    "h": 281.1
  },
  "luminance": 0.04935
}

Semantic roles & 50–950 ramp

primary
#3A2C97
secondary
#AFBA65
accent
#DE4ACB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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