#2A5598#2A5598

#2A5598 is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.5% C 0.120 H 259.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#2A5598
RGBrgb(42, 85, 152)
HSLhsl(217, 57%, 38%)
HSVhsv(217, 72%, 60%)
CMYKcmyk(72.4%, 44.1%, 0%, 40.4%)
CIE-LABlab(36.47, 8.84, -41.06)
CIE-LCHlch(36.47, 42.00, 282.15°)
OKLaboklab(45.5% -0.0228 -0.1174)
OKLCHoklch(45.5% 0.12 259)
XYZxyz(9.8688, 9.2552, 30.9660)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5598 #986D2A
analogous
#2A8C98 #2A5598 #362A98
triadic
#2A5598 #982A55 #55982A
tetradic
#2A5598 #982A8C #986D2A #2A9836
square
#2A5598 #982A8C #986D2A #2A9836
split-complementary
#2A5598 #98362A #8C982A
monochromatic
#101F38 #1D3A68 #2A5598 #3770C8 #6792D5

Accessibility & contrast

On white

7.37
#2A5598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2A5598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5598
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5598#FFFFFF#000000##FFFFFF
##2A55981.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9B
Deuteranopia (green-blind)
#215197
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a5598;
/* rgb */ color: rgb(42, 85, 152);
/* oklch */ color: oklch(45.5% 0.120 259.0);
Tailwind
colors: {
  custom: {
    50: '#7284b7',
    500: '#2a5598',
    950: '#000000',
  },
}
SCSS
$custom: #2a5598;
$custom-light: #7284b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5598",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 152
  },
  "hsl": {
    "h": 216.545,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45498,
    "c": 0.11958,
    "h": 259
  },
  "luminance": 0.09256
}

Semantic roles & 50–950 ramp

primary
#2A5598
secondary
#BB9962
accent
#A448E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5598

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

Preview Lab → · Contrast checker → · Palette generator →

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