#2A5EBE#2A5EBE

#2A5EBE is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.161 H 261.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#2A5EBE
RGBrgb(42, 94, 190)
HSLhsl(219, 64%, 45%)
HSVhsv(219, 78%, 75%)
CMYKcmyk(77.9%, 50.5%, 0%, 25.5%)
CIE-LABlab(41.55, 17.54, -55.39)
CIE-LCHlch(41.55, 58.10, 287.57°)
OKLaboklab(50.2% -0.0243 -0.1594)
OKLCHoklch(50.2% 0.161 261.3)
XYZxyz(14.2485, 12.2137, 50.3117)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EBE #BE8A2A
analogous
#2AA8BE #2A5EBE #402ABE
triadic
#2A5EBE #BE2A5E #5EBE2A
tetradic
#2A5EBE #BE2AA8 #BE8A2A #2ABE40
square
#2A5EBE #BE2AA8 #BE8A2A #2ABE40
split-complementary
#2A5EBE #BE402A #A8BE2A
monochromatic
#142C5A #1F458C #2A5EBE #4D7ED8 #80A2E3

Accessibility & contrast

On white

6.10
#2A5EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2A5EBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EBE
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EBE#FFFFFF#000000##FFFFFF
##2A5EBE1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2269C1
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5ebe;
/* rgb */ color: rgb(42, 94, 190);
/* oklch */ color: oklch(50.2% 0.161 261.3);
Tailwind
colors: {
  custom: {
    50: '#7a8bd2',
    500: '#2a5ebe',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ebe;
$custom-light: #7a8bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ebe",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 190
  },
  "hsl": {
    "h": 218.919,
    "s": 63.793,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50202,
    "c": 0.16123,
    "h": 261.3
  },
  "luminance": 0.12215
}

Semantic roles & 50–950 ramp

primary
#2A5EBE
secondary
#CBAE78
accent
#AD41E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A5EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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