#2A5696#2A5696

#2A5696 is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.6% C 0.116 H 257.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#2A5696
RGBrgb(42, 86, 150)
HSLhsl(216, 56%, 38%)
HSVhsv(216, 72%, 59%)
CMYKcmyk(72%, 42.7%, 0%, 41.2%)
CIE-LABlab(36.65, 7.42, -39.57)
CIE-LCHlch(36.65, 40.26, 280.62°)
OKLaboklab(45.6% -0.0241 -0.113)
OKLCHoklch(45.6% 0.116 257.9)
XYZxyz(9.7857, 9.3488, 30.1370)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5696 #966A2A
analogous
#2A8C96 #2A5696 #342A96
triadic
#2A5696 #962A56 #56962A
tetradic
#2A5696 #962A8C #966A2A #2A9634
square
#2A5696 #962A8C #966A2A #2A9634
split-complementary
#2A5696 #96342A #8C962A
monochromatic
#0F1F36 #1D3B66 #2A5696 #3771C6 #6693D4

Accessibility & contrast

On white

7.32
#2A5696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2A5696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5696
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5696#FFFFFF#000000##FFFFFF
##2A56961.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385C99
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a5696;
/* rgb */ color: rgb(42, 86, 150);
/* oklch */ color: oklch(45.6% 0.116 257.9);
Tailwind
colors: {
  custom: {
    50: '#7185b5',
    500: '#2a5696',
    950: '#000000',
  },
}
SCSS
$custom: #2a5696;
$custom-light: #7185b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5696",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 150
  },
  "hsl": {
    "h": 215.556,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45595,
    "c": 0.11555,
    "h": 257.9
  },
  "luminance": 0.0935
}

Semantic roles & 50–950 ramp

primary
#2A5696
secondary
#BA9661
accent
#A248E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5696

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

Preview Lab → · Contrast checker → · Palette generator →

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