#2A5AB1#2A5AB1

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

Color values

HEX#2A5AB1
RGBrgb(42, 90, 177)
HSLhsl(219, 62%, 43%)
HSVhsv(219, 76%, 69%)
CMYKcmyk(76.3%, 49.2%, 0%, 30.6%)
CIE-LABlab(39.54, 15.16, -51.02)
CIE-LCHlch(39.54, 53.23, 286.55°)
OKLaboklab(48.38% -0.0229 -0.1466)
OKLCHoklch(48.38% 0.148 261.1)
XYZxyz(12.5440, 10.9775, 43.0442)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AB1 #B1812A
analogous
#2A9DB1 #2A5AB1 #3E2AB1
triadic
#2A5AB1 #B12A5A #5AB12A
tetradic
#2A5AB1 #B12A9D #B1812A #2AB13E
square
#2A5AB1 #B12A9D #B1812A #2AB13E
split-complementary
#2A5AB1 #B13E2A #9DB12A
monochromatic
#13284E #1E4180 #2A5AB1 #4578D3 #779CDF

Accessibility & contrast

On white

6.57
#2A5AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2A5AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AB1
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AB1#FFFFFF#000000##FFFFFF
##2A5AB11.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5ab1;
/* rgb */ color: rgb(42, 90, 177);
/* oklch */ color: oklch(48.4% 0.148 261.1);
Tailwind
colors: {
  custom: {
    50: '#7788c9',
    500: '#2a5ab1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ab1;
$custom-light: #7788c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ab1",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 177
  },
  "hsl": {
    "h": 218.667,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48381,
    "c": 0.14838,
    "h": 261.1
  },
  "luminance": 0.10979
}

Semantic roles & 50–950 ramp

primary
#2A5AB1
secondary
#C6A870
accent
#AB43E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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