#3A5797#3A5797

#3A5797 is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.7% C 0.110 H 264.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#3A5797
RGBrgb(58, 87, 151)
HSLhsl(221, 44%, 41%)
HSVhsv(221, 62%, 59%)
CMYKcmyk(61.6%, 42.4%, 0%, 40.8%)
CIE-LABlab(37.75, 10.02, -38.37)
CIE-LCHlch(37.75, 39.65, 284.63°)
OKLaboklab(46.67% -0.0111 -0.1092)
OKLCHoklch(46.67% 0.11 264.2)
XYZxyz(10.7371, 9.9494, 30.6268)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5797 #977A3A
analogous
#3A8597 #3A5797 #4B3A97
triadic
#3A5797 #973A57 #57973A
tetradic
#3A5797 #973A85 #977A3A #3A974B
square
#3A5797 #973A85 #977A3A #3A974B
split-complementary
#3A5797 #974B3A #85973A
monochromatic
#18243F #293E6B #3A5797 #5273BC #7E97CD

Accessibility & contrast

On white

7.02
#3A5797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#3A5797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5797
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5797#FFFFFF#000000##FFFFFF
##3A57971.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5D99
Deuteranopia (green-blind)
#2E5596
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3a5797;
/* rgb */ color: rgb(58, 87, 151);
/* oklch */ color: oklch(46.7% 0.110 264.2);
Tailwind
colors: {
  custom: {
    50: '#7986b6',
    500: '#3a5797',
    950: '#000000',
  },
}
SCSS
$custom: #3a5797;
$custom-light: #7986b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5797",
  "rgb": {
    "r": 58,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 221.29,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46672,
    "c": 0.10974,
    "h": 264.2
  },
  "luminance": 0.0995
}

Semantic roles & 50–950 ramp

primary
#3A5797
secondary
#B7A376
accent
#AC54D4
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #3A5797

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

Preview Lab → · Contrast checker → · Palette generator →

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