#2A5698#2A5698

#2A5698 is a mid, moderate blue. Relative luminance 0.094; OKLCH L 45.7% C 0.118 H 258.4°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2A5698
RGBrgb(42, 86, 152)
HSLhsl(216, 57%, 38%)
HSVhsv(216, 72%, 60%)
CMYKcmyk(72.4%, 43.4%, 0%, 40.4%)
CIE-LABlab(36.77, 8.18, -40.58)
CIE-LCHlch(36.77, 41.40, 281.40°)
OKLaboklab(45.73% -0.0237 -0.116)
OKLCHoklch(45.73% 0.118 258.4)
XYZxyz(9.9481, 9.4138, 30.9924)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5698 #986C2A
analogous
#2A8D98 #2A5698 #352A98
triadic
#2A5698 #982A56 #56982A
tetradic
#2A5698 #982A8D #986C2A #2A9835
square
#2A5698 #982A8D #986C2A #2A9835
split-complementary
#2A5698 #98352A #8D982A
monochromatic
#102038 #1D3B68 #2A5698 #3771C8 #6793D5

Accessibility & contrast

On white

7.28
#2A5698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2A5698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5698
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5698#FFFFFF#000000##FFFFFF
##2A56981.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365C9B
Deuteranopia (green-blind)
#235297
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a5698;
/* rgb */ color: rgb(42, 86, 152);
/* oklch */ color: oklch(45.7% 0.118 258.4);
Tailwind
colors: {
  custom: {
    50: '#7285b7',
    500: '#2a5698',
    950: '#000000',
  },
}
SCSS
$custom: #2a5698;
$custom-light: #7285b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5698",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 216,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45728,
    "c": 0.11837,
    "h": 258.4
  },
  "luminance": 0.09415
}

Semantic roles & 50–950 ramp

primary
#2A5698
secondary
#BB9862
accent
#A348E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5698

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

Preview Lab → · Contrast checker → · Palette generator →

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