#2A5ABB#2A5ABB

#2A5ABB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.162 H 262.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#2A5ABB
RGBrgb(42, 90, 187)
HSLhsl(220, 63%, 45%)
HSVhsv(220, 78%, 73%)
CMYKcmyk(77.5%, 51.9%, 0%, 26.7%)
CIE-LABlab(40.23, 19.00, -55.78)
CIE-LCHlch(40.23, 58.92, 288.81°)
OKLaboklab(49.13% -0.0216 -0.1606)
OKLCHoklch(49.13% 0.162 262.3)
XYZxyz(13.5774, 11.3909, 48.4872)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5ABB #BB8B2A
analogous
#2AA3BB #2A5ABB #432ABB
triadic
#2A5ABB #BB2A5A #5ABB2A
tetradic
#2A5ABB #BB2AA3 #BB8B2A #2ABB43
square
#2A5ABB #BB2AA3 #BB8B2A #2ABB43
split-complementary
#2A5ABB #BB432A #A3BB2A
monochromatic
#142A57 #1F4289 #2A5ABB #4C7AD7 #7D9FE2

Accessibility & contrast

On white

6.41
#2A5ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2A5ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5ABB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5ABB#FFFFFF#000000##FFFFFF
##2A5ABB1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1866BE
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5abb;
/* rgb */ color: rgb(42, 90, 187);
/* oklch */ color: oklch(49.1% 0.162 262.3);
Tailwind
colors: {
  custom: {
    50: '#7988d0',
    500: '#2a5abb',
    950: '#000000',
  },
}
SCSS
$custom: #2a5abb;
$custom-light: #7988d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5abb",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 220.138,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49127,
    "c": 0.16204,
    "h": 262.3
  },
  "luminance": 0.11392
}

Semantic roles & 50–950 ramp

primary
#2A5ABB
secondary
#CAAF76
accent
#B041E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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