#3A3897#3A3897

#3A3897 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.151 H 278.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#3A3897
RGBrgb(58, 56, 151)
HSLhsl(241, 46%, 41%)
HSVhsv(241, 63%, 59%)
CMYKcmyk(61.6%, 62.9%, 0%, 40.8%)
CIE-LABlab(29.32, 30.38, -51.96)
CIE-LCHlch(29.32, 60.19, 300.32°)
OKLaboklab(40.31% 0.0213 -0.1495)
OKLCHoklch(40.31% 0.151 278.1)
XYZxyz(8.7432, 5.9616, 29.9621)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3897 #959738
analogous
#386597 #3A3897 #693897
triadic
#3A3897 #973A38 #38973A
tetradic
#3A3897 #973865 #959738 #389769
square
#3A3897 #973865 #959738 #389769
split-complementary
#3A3897 #976938 #659738
monochromatic
#18173E #29276A #3A3897 #514FBE #7D7BCE

Accessibility & contrast

On white

9.58
#3A3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#3A3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3897
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3897#FFFFFF#000000##FFFFFF
##3A38971.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a3897;
/* rgb */ color: rgb(58, 56, 151);
/* oklch */ color: oklch(40.3% 0.151 278.1);
Tailwind
colors: {
  custom: {
    50: '#7a6fb6',
    500: '#3a3897',
    950: '#000000',
  },
}
SCSS
$custom: #3a3897;
$custom-light: #7a6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3897",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 241.263,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4031,
    "c": 0.15099,
    "h": 278.1
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#3A3897
secondary
#B6B773
accent
#D652D3
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3897

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

Preview Lab → · Contrast checker → · Palette generator →

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