#2A5BB4#2A5BB4

#2A5BB4 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.8% C 0.151 H 261.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2A5BB4
RGBrgb(42, 91, 180)
HSLhsl(219, 62%, 44%)
HSVhsv(219, 77%, 71%)
CMYKcmyk(76.7%, 49.4%, 0%, 29.4%)
CIE-LABlab(40.03, 15.66, -52.00)
CIE-LCHlch(40.03, 54.31, 286.76°)
OKLaboklab(48.82% -0.0233 -0.1495)
OKLCHoklch(48.82% 0.151 261.2)
XYZxyz(12.9312, 11.2682, 44.6646)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BB4 #B4832A
analogous
#2AA0B4 #2A5BB4 #3E2AB4
triadic
#2A5BB4 #B42A5B #5BB42A
tetradic
#2A5BB4 #B42AA0 #B4832A #2AB43E
square
#2A5BB4 #B42AA0 #B4832A #2AB43E
split-complementary
#2A5BB4 #B43E2A #A0B42A
monochromatic
#132951 #1E4282 #2A5BB4 #4779D4 #799DE0

Accessibility & contrast

On white

6.45
#2A5BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2A5BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BB4
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BB4#FFFFFF#000000##FFFFFF
##2A5BB41.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2765B7
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5bb4;
/* rgb */ color: rgb(42, 91, 180);
/* oklch */ color: oklch(48.8% 0.151 261.2);
Tailwind
colors: {
  custom: {
    50: '#7888cb',
    500: '#2a5bb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bb4;
$custom-light: #7888cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bb4",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 218.696,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48818,
    "c": 0.15128,
    "h": 261.2
  },
  "luminance": 0.1127
}

Semantic roles & 50–950 ramp

primary
#2A5BB4
secondary
#C8A972
accent
#AB43E5
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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