#2A5EBC#2A5EBC

#2A5EBC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.1% C 0.159 H 261.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2A5EBC
RGBrgb(42, 94, 188)
HSLhsl(219, 63%, 45%)
HSVhsv(219, 78%, 74%)
CMYKcmyk(77.7%, 50%, 0%, 26.3%)
CIE-LABlab(41.42, 16.77, -54.45)
CIE-LCHlch(41.42, 56.97, 287.12°)
OKLaboklab(50.05% -0.0246 -0.1566)
OKLCHoklch(50.05% 0.159 261.1)
XYZxyz(14.0314, 12.1269, 49.1684)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EBC #BC882A
analogous
#2AA7BC #2A5EBC #3F2ABC
triadic
#2A5EBC #BC2A5E #5EBC2A
tetradic
#2A5EBC #BC2AA7 #BC882A #2ABC3F
square
#2A5EBC #BC2AA7 #BC882A #2ABC3F
split-complementary
#2A5EBC #BC3F2A #A7BC2A
monochromatic
#142C58 #1F458A #2A5EBC #4C7ED7 #7EA2E2

Accessibility & contrast

On white

6.13
#2A5EBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2A5EBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EBC
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EBC#FFFFFF#000000##FFFFFF
##2A5EBC1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2569BF
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5ebc;
/* rgb */ color: rgb(42, 94, 188);
/* oklch */ color: oklch(50.1% 0.159 261.1);
Tailwind
colors: {
  custom: {
    50: '#798bd1',
    500: '#2a5ebc',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ebc;
$custom-light: #798bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ebc",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 188
  },
  "hsl": {
    "h": 218.63,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50054,
    "c": 0.15852,
    "h": 261.1
  },
  "luminance": 0.12128
}

Semantic roles & 50–950 ramp

primary
#2A5EBC
secondary
#CBAD77
accent
#AC41E7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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