#2A5BAE#2A5BAE

#2A5BAE is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.4% C 0.143 H 260.3°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#2A5BAE
RGBrgb(42, 91, 174)
HSLhsl(218, 61%, 42%)
HSVhsv(218, 76%, 68%)
CMYKcmyk(75.9%, 47.7%, 0%, 31.8%)
CIE-LABlab(39.63, 13.35, -49.11)
CIE-LCHlch(39.63, 50.90, 285.21°)
OKLaboklab(48.38% -0.0242 -0.141)
OKLCHoklch(48.38% 0.143 260.3)
XYZxyz(12.3331, 11.0290, 41.5150)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BAE #AE7D2A
analogous
#2A9DAE #2A5BAE #3B2AAE
triadic
#2A5BAE #AE2A5B #5BAE2A
tetradic
#2A5BAE #AE2A9D #AE7D2A #2AAE3B
square
#2A5BAE #AE2A9D #AE7D2A #2AAE3B
split-complementary
#2A5BAE #AE3B2A #9DAE2A
monochromatic
#12274B #1E417D #2A5BAE #4378D2 #759CDE

Accessibility & contrast

On white

6.55
#2A5BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2A5BAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BAE
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BAE#FFFFFF#000000##FFFFFF
##2A5BAE1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E64B1
Deuteranopia (green-blind)
#0758AC
Tritanopia (blue-blind)
#006F7C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5bae;
/* rgb */ color: rgb(42, 91, 174);
/* oklch */ color: oklch(48.4% 0.143 260.3);
Tailwind
colors: {
  custom: {
    50: '#7688c7',
    500: '#2a5bae',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bae;
$custom-light: #7688c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bae",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 174
  },
  "hsl": {
    "h": 217.727,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48384,
    "c": 0.14303,
    "h": 260.3
  },
  "luminance": 0.1103
}

Semantic roles & 50–950 ramp

primary
#2A5BAE
secondary
#C5A56F
accent
#A944E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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