#2A5BB1#2A5BB1

#2A5BB1 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.6% C 0.147 H 260.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#2A5BB1
RGBrgb(42, 91, 177)
HSLhsl(218, 62%, 43%)
HSVhsv(218, 76%, 69%)
CMYKcmyk(76.3%, 48.6%, 0%, 30.6%)
CIE-LABlab(39.83, 14.50, -50.56)
CIE-LCHlch(39.83, 52.60, 286.01°)
OKLaboklab(48.6% -0.0237 -0.1452)
OKLCHoklch(48.6% 0.147 260.7)
XYZxyz(12.6289, 11.1473, 43.0725)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BB1 #B1802A
analogous
#2A9EB1 #2A5BB1 #3C2AB1
triadic
#2A5BB1 #B12A5B #5BB12A
tetradic
#2A5BB1 #B12A9E #B1802A #2AB13C
square
#2A5BB1 #B12A9E #B1802A #2AB13C
split-complementary
#2A5BB1 #B13C2A #9EB12A
monochromatic
#13284E #1E4280 #2A5BB1 #4579D3 #779CDF

Accessibility & contrast

On white

6.50
#2A5BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2A5BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BB1
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BB1#FFFFFF#000000##FFFFFF
##2A5BB11.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A64B4
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5bb1;
/* rgb */ color: rgb(42, 91, 177);
/* oklch */ color: oklch(48.6% 0.147 260.7);
Tailwind
colors: {
  custom: {
    50: '#7788c9',
    500: '#2a5bb1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bb1;
$custom-light: #7788c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bb1",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 218.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48599,
    "c": 0.14716,
    "h": 260.7
  },
  "luminance": 0.11149
}

Semantic roles & 50–950 ramp

primary
#2A5BB1
secondary
#C6A770
accent
#AA43E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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