#2A5EB4#2A5EB4

#2A5EB4 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.148 H 260.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#2A5EB4
RGBrgb(42, 94, 180)
HSLhsl(217, 62%, 44%)
HSVhsv(217, 77%, 71%)
CMYKcmyk(76.7%, 47.8%, 0%, 29.4%)
CIE-LABlab(40.88, 13.70, -50.63)
CIE-LCHlch(40.88, 52.45, 285.14°)
OKLaboklab(49.47% -0.0257 -0.1454)
OKLCHoklch(49.47% 0.148 260)
XYZxyz(13.1928, 11.7914, 44.7518)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EB4 #B4802A
analogous
#2AA3B4 #2A5EB4 #3B2AB4
triadic
#2A5EB4 #B42A5E #5EB42A
tetradic
#2A5EB4 #B42AA3 #B4802A #2AB43B
square
#2A5EB4 #B42AA3 #B4802A #2AB43B
split-complementary
#2A5EB4 #B43B2A #A3B42A
monochromatic
#132A51 #1E4482 #2A5EB4 #477CD4 #79A0E0

Accessibility & contrast

On white

6.25
#2A5EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2A5EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EB4
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EB4#FFFFFF#000000##FFFFFF
##2A5EB41.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E67B7
Deuteranopia (green-blind)
#035AB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5eb4;
/* rgb */ color: rgb(42, 94, 180);
/* oklch */ color: oklch(49.5% 0.148 260.0);
Tailwind
colors: {
  custom: {
    50: '#788bcb',
    500: '#2a5eb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eb4;
$custom-light: #788bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eb4",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 217.391,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49473,
    "c": 0.14763,
    "h": 260
  },
  "luminance": 0.11793
}

Semantic roles & 50–950 ramp

primary
#2A5EB4
secondary
#C8A772
accent
#A843E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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