#2A5BBA#2A5BBA

#2A5BBA is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.159 H 261.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#2A5BBA
RGBrgb(42, 91, 186)
HSLhsl(220, 63%, 45%)
HSVhsv(220, 77%, 73%)
CMYKcmyk(77.4%, 51.1%, 0%, 27.1%)
CIE-LABlab(40.44, 17.96, -54.86)
CIE-LCHlch(40.44, 57.72, 288.13°)
OKLaboklab(49.26% -0.0225 -0.1579)
OKLCHoklch(49.26% 0.159 261.9)
XYZxyz(13.5557, 11.5180, 47.9536)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BBA #BA892A
analogous
#2AA3BA #2A5BBA #412ABA
triadic
#2A5BBA #BA2A5B #5BBA2A
tetradic
#2A5BBA #BA2AA3 #BA892A #2ABA41
square
#2A5BBA #BA2AA3 #BA892A #2ABA41
split-complementary
#2A5BBA #BA412A #A3BA2A
monochromatic
#132A56 #1F4388 #2A5BBA #4B7AD6 #7D9FE2

Accessibility & contrast

On white

6.36
#2A5BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2A5BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BBA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BBA#FFFFFF#000000##FFFFFF
##2A5BBA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E66BD
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5bba;
/* rgb */ color: rgb(42, 91, 186);
/* oklch */ color: oklch(49.3% 0.159 261.9);
Tailwind
colors: {
  custom: {
    50: '#7988cf',
    500: '#2a5bba',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bba;
$custom-light: #7988cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bba",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 186
  },
  "hsl": {
    "h": 219.583,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49263,
    "c": 0.15946,
    "h": 261.9
  },
  "luminance": 0.1152
}

Semantic roles & 50–950 ramp

primary
#2A5BBA
secondary
#CAAD76
accent
#AE42E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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