#2A5797#2A5797

#2A5797 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.9% C 0.116 H 257.6°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2A5797
RGBrgb(42, 87, 151)
HSLhsl(215, 56%, 38%)
HSVhsv(215, 72%, 59%)
CMYKcmyk(72.2%, 42.4%, 0%, 40.8%)
CIE-LABlab(37.01, 7.14, -39.60)
CIE-LCHlch(37.01, 40.24, 280.23°)
OKLaboklab(45.89% -0.0249 -0.1131)
OKLCHoklch(45.89% 0.116 257.6)
XYZxyz(9.9469, 9.5419, 30.5897)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5797 #976A2A
analogous
#2A8E97 #2A5797 #332A97
triadic
#2A5797 #972A57 #57972A
tetradic
#2A5797 #972A8E #976A2A #2A9733
square
#2A5797 #972A8E #976A2A #2A9733
split-complementary
#2A5797 #97332A #8E972A
monochromatic
#0F2037 #1D3B67 #2A5797 #3773C7 #6794D5

Accessibility & contrast

On white

7.22
#2A5797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2A5797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5797
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5797#FFFFFF#000000##FFFFFF
##2A57971.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9A
Deuteranopia (green-blind)
#275296
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a5797;
/* rgb */ color: rgb(42, 87, 151);
/* oklch */ color: oklch(45.9% 0.116 257.6);
Tailwind
colors: {
  custom: {
    50: '#7285b6',
    500: '#2a5797',
    950: '#000000',
  },
}
SCSS
$custom: #2a5797;
$custom-light: #7285b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5797",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 215.229,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45893,
    "c": 0.11578,
    "h": 257.6
  },
  "luminance": 0.09543
}

Semantic roles & 50–950 ramp

primary
#2A5797
secondary
#BB9662
accent
#A148E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5797

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

Preview Lab → · Contrast checker → · Palette generator →

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