#2A5EB1#2A5EB1

#2A5EB1 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.144 H 259.5°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#2A5EB1
RGBrgb(42, 94, 177)
HSLhsl(217, 62%, 43%)
HSVhsv(217, 76%, 69%)
CMYKcmyk(76.3%, 46.9%, 0%, 30.6%)
CIE-LABlab(40.69, 12.55, -49.18)
CIE-LCHlch(40.69, 50.75, 284.31°)
OKLaboklab(49.26% -0.0262 -0.1411)
OKLCHoklch(49.26% 0.144 259.5)
XYZxyz(12.8905, 11.6705, 43.1597)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EB1 #B17D2A
analogous
#2AA1B1 #2A5EB1 #392AB1
triadic
#2A5EB1 #B12A5E #5EB12A
tetradic
#2A5EB1 #B12AA1 #B17D2A #2AB139
square
#2A5EB1 #B12AA1 #B17D2A #2AB139
split-complementary
#2A5EB1 #B1392A #A1B12A
monochromatic
#13294E #1E4480 #2A5EB1 #457CD3 #779FDF

Accessibility & contrast

On white

6.30
#2A5EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2A5EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EB1
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EB1#FFFFFF#000000##FFFFFF
##2A5EB11.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B4
Deuteranopia (green-blind)
#0F5AAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5eb1;
/* rgb */ color: rgb(42, 94, 177);
/* oklch */ color: oklch(49.3% 0.144 259.5);
Tailwind
colors: {
  custom: {
    50: '#778bc9',
    500: '#2a5eb1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eb1;
$custom-light: #778bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eb1",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 177
  },
  "hsl": {
    "h": 216.889,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4926,
    "c": 0.14353,
    "h": 259.5
  },
  "luminance": 0.11672
}

Semantic roles & 50–950 ramp

primary
#2A5EB1
secondary
#C6A570
accent
#A643E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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