#3A3797#3A3797

#3A3797 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.152 H 278.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#3A3797
RGBrgb(58, 55, 151)
HSLhsl(242, 47%, 40%)
HSVhsv(242, 64%, 59%)
CMYKcmyk(61.6%, 63.6%, 0%, 40.8%)
CIE-LABlab(29.07, 31.02, -52.36)
CIE-LCHlch(29.07, 60.86, 300.65°)
OKLaboklab(40.13% 0.0223 -0.1506)
OKLCHoklch(40.13% 0.152 278.4)
XYZxyz(8.6952, 5.8656, 29.9461)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3797 #949737
analogous
#376497 #3A3797 #6A3797
triadic
#3A3797 #973A37 #37973A
tetradic
#3A3797 #973764 #949737 #37976A
square
#3A3797 #973764 #949737 #37976A
split-complementary
#3A3797 #976A37 #649737
monochromatic
#18163D #29276A #3A3797 #514DBE #7D7ACF

Accessibility & contrast

On white

9.66
#3A3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3A3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3797
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3797#FFFFFF#000000##FFFFFF
##3A37971.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a3797;
/* rgb */ color: rgb(58, 55, 151);
/* oklch */ color: oklch(40.1% 0.152 278.4);
Tailwind
colors: {
  custom: {
    50: '#7b6eb6',
    500: '#3a3797',
    950: '#000000',
  },
}
SCSS
$custom: #3a3797;
$custom-light: #7b6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3797",
  "rgb": {
    "r": 58,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 241.875,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40131,
    "c": 0.15229,
    "h": 278.4
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#3A3797
secondary
#B5B872
accent
#D652D2
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3797

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

Preview Lab → · Contrast checker → · Palette generator →

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