#2A5EBD#2A5EBD

#2A5EBD is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.160 H 261.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2A5EBD
RGBrgb(42, 94, 189)
HSLhsl(219, 64%, 45%)
HSVhsv(219, 78%, 74%)
CMYKcmyk(77.8%, 50.3%, 0%, 25.9%)
CIE-LABlab(41.49, 17.15, -54.92)
CIE-LCHlch(41.49, 57.53, 287.34°)
OKLaboklab(50.13% -0.0244 -0.158)
OKLCHoklch(50.13% 0.16 261.2)
XYZxyz(14.1395, 12.1701, 49.7381)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EBD #BD892A
analogous
#2AA7BD #2A5EBD #402ABD
triadic
#2A5EBD #BD2A5E #5EBD2A
tetradic
#2A5EBD #BD2AA7 #BD892A #2ABD40
square
#2A5EBD #BD2AA7 #BD892A #2ABD40
split-complementary
#2A5EBD #BD402A #A7BD2A
monochromatic
#142C59 #1F458B #2A5EBD #4D7ED7 #7FA2E3

Accessibility & contrast

On white

6.11
#2A5EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5EBD
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EBD#FFFFFF#000000##FFFFFF
##2A5EBD1.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2369C0
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5ebd;
/* rgb */ color: rgb(42, 94, 189);
/* oklch */ color: oklch(50.1% 0.160 261.2);
Tailwind
colors: {
  custom: {
    50: '#7a8bd1',
    500: '#2a5ebd',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ebd;
$custom-light: #7a8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ebd",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 189
  },
  "hsl": {
    "h": 218.776,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50128,
    "c": 0.15988,
    "h": 261.2
  },
  "luminance": 0.12172
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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