#2A5796#2A5796

#2A5796 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.8% C 0.114 H 257.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2A5796
RGBrgb(42, 87, 150)
HSLhsl(215, 56%, 38%)
HSVhsv(215, 72%, 59%)
CMYKcmyk(72%, 42%, 0%, 41.2%)
CIE-LABlab(36.95, 6.76, -39.09)
CIE-LCHlch(36.95, 39.67, 279.81°)
OKLaboklab(45.83% -0.0251 -0.1116)
OKLCHoklch(45.83% 0.114 257.3)
XYZxyz(9.8661, 9.5096, 30.1638)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5796 #96692A
analogous
#2A8D96 #2A5796 #332A96
triadic
#2A5796 #962A57 #57962A
tetradic
#2A5796 #962A8D #96692A #2A9633
square
#2A5796 #962A8D #96692A #2A9633
split-complementary
#2A5796 #96332A #8D962A
monochromatic
#0F2036 #1D3B66 #2A5796 #3773C6 #6694D4

Accessibility & contrast

On white

7.24
#2A5796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2A5796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5796
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5796#FFFFFF#000000##FFFFFF
##2A57961.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a5796;
/* rgb */ color: rgb(42, 87, 150);
/* oklch */ color: oklch(45.8% 0.114 257.3);
Tailwind
colors: {
  custom: {
    50: '#7185b5',
    500: '#2a5796',
    950: '#000000',
  },
}
SCSS
$custom: #2a5796;
$custom-light: #7185b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5796",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 150
  },
  "hsl": {
    "h": 215,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45827,
    "c": 0.11437,
    "h": 257.3
  },
  "luminance": 0.09511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5796

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

Preview Lab → · Contrast checker → · Palette generator →

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