#2A5EB8#2A5EB8

#2A5EB8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.153 H 260.6°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#2A5EB8
RGBrgb(42, 94, 184)
HSLhsl(218, 63%, 44%)
HSVhsv(218, 77%, 72%)
CMYKcmyk(77.2%, 48.9%, 0%, 27.8%)
CIE-LABlab(41.15, 15.23, -52.54)
CIE-LCHlch(41.15, 54.71, 286.17°)
OKLaboklab(49.76% -0.0251 -0.151)
OKLCHoklch(49.76% 0.153 260.6)
XYZxyz(13.6061, 11.9568, 46.9289)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EB8 #B8842A
analogous
#2AA5B8 #2A5EB8 #3D2AB8
triadic
#2A5EB8 #B82A5E #5EB82A
tetradic
#2A5EB8 #B82AA5 #B8842A #2AB83D
square
#2A5EB8 #B82AA5 #B8842A #2AB83D
split-complementary
#2A5EB8 #B83D2A #A5B82A
monochromatic
#132B54 #1F4586 #2A5EB8 #4A7DD6 #7BA1E1

Accessibility & contrast

On white

6.19
#2A5EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2A5EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EB8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EB8#FFFFFF#000000##FFFFFF
##2A5EB81.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A68BB
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5eb8;
/* rgb */ color: rgb(42, 94, 184);
/* oklch */ color: oklch(49.8% 0.153 260.6);
Tailwind
colors: {
  custom: {
    50: '#788bce',
    500: '#2a5eb8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eb8;
$custom-light: #788bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eb8",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 184
  },
  "hsl": {
    "h": 218.028,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49761,
    "c": 0.15309,
    "h": 260.6
  },
  "luminance": 0.11958
}

Semantic roles & 50–950 ramp

primary
#2A5EB8
secondary
#C9AA75
accent
#AA42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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