#3A5897#3A5897

#3A5897 is a mid, moderate blue. Relative luminance 0.101; OKLCH L 46.9% C 0.108 H 263.6°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#3A5897
RGBrgb(58, 88, 151)
HSLhsl(221, 44%, 41%)
HSVhsv(221, 62%, 59%)
CMYKcmyk(61.6%, 41.7%, 0%, 40.8%)
CIE-LABlab(38.04, 9.37, -37.90)
CIE-LCHlch(38.04, 39.04, 283.89°)
OKLaboklab(46.9% -0.0122 -0.1078)
OKLCHoklch(46.9% 0.108 263.6)
XYZxyz(10.8186, 10.1124, 30.6539)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5897 #97793A
analogous
#3A8697 #3A5897 #4A3A97
triadic
#3A5897 #973A58 #58973A
tetradic
#3A5897 #973A86 #97793A #3A974A
square
#3A5897 #973A86 #97793A #3A974A
split-complementary
#3A5897 #974A3A #86973A
monochromatic
#18243F #293E6B #3A5897 #5274BC #7E98CD

Accessibility & contrast

On white

6.95
#3A5897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#3A5897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5897
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5897#FFFFFF#000000##FFFFFF
##3A58971.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5E99
Deuteranopia (green-blind)
#2F5696
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3a5897;
/* rgb */ color: rgb(58, 88, 151);
/* oklch */ color: oklch(46.9% 0.108 263.6);
Tailwind
colors: {
  custom: {
    50: '#7986b6',
    500: '#3a5897',
    950: '#000000',
  },
}
SCSS
$custom: #3a5897;
$custom-light: #7986b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5897",
  "rgb": {
    "r": 58,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 220.645,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46898,
    "c": 0.10848,
    "h": 263.6
  },
  "luminance": 0.10113
}

Semantic roles & 50–950 ramp

primary
#3A5897
secondary
#B7A276
accent
#AB54D4
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #3A5897

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

Preview Lab → · Contrast checker → · Palette generator →

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