#2A5596#2A5596

#2A5596 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.4% C 0.117 H 258.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#2A5596
RGBrgb(42, 85, 150)
HSLhsl(216, 56%, 38%)
HSVhsv(216, 72%, 59%)
CMYKcmyk(72%, 43.3%, 0%, 41.2%)
CIE-LABlab(36.35, 8.07, -40.05)
CIE-LCHlch(36.35, 40.85, 281.40°)
OKLaboklab(45.36% -0.0232 -0.1144)
OKLCHoklch(45.36% 0.117 258.6)
XYZxyz(9.7064, 9.1902, 30.1106)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5596 #966B2A
analogous
#2A8B96 #2A5596 #352A96
triadic
#2A5596 #962A55 #55962A
tetradic
#2A5596 #962A8B #966B2A #2A9635
square
#2A5596 #962A8B #966B2A #2A9635
split-complementary
#2A5596 #96352A #8B962A
monochromatic
#0F1F36 #1D3A66 #2A5596 #3770C6 #6692D4

Accessibility & contrast

On white

7.40
#2A5596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2A5596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5596
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5596#FFFFFF#000000##FFFFFF
##2A55961.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365B99
Deuteranopia (green-blind)
#235195
Tritanopia (blue-blind)
#00646E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a5596;
/* rgb */ color: rgb(42, 85, 150);
/* oklch */ color: oklch(45.4% 0.117 258.6);
Tailwind
colors: {
  custom: {
    50: '#7184b5',
    500: '#2a5596',
    950: '#000000',
  },
}
SCSS
$custom: #2a5596;
$custom-light: #7184b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5596",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 150
  },
  "hsl": {
    "h": 216.111,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45363,
    "c": 0.11674,
    "h": 258.6
  },
  "luminance": 0.09191
}

Semantic roles & 50–950 ramp

primary
#2A5596
secondary
#BA9761
accent
#A348E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5596

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

Preview Lab → · Contrast checker → · Palette generator →

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