#2A5AB7#2A5AB7

#2A5AB7 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.8% C 0.157 H 261.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#2A5AB7
RGBrgb(42, 90, 183)
HSLhsl(220, 63%, 44%)
HSVhsv(220, 77%, 72%)
CMYKcmyk(77%, 50.8%, 0%, 28.2%)
CIE-LABlab(39.95, 17.46, -53.89)
CIE-LCHlch(39.95, 56.65, 287.96°)
OKLaboklab(48.83% -0.0221 -0.155)
OKLCHoklch(48.83% 0.157 261.9)
XYZxyz(13.1552, 11.2220, 46.2633)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AB7 #B7872A
analogous
#2AA1B7 #2A5AB7 #402AB7
triadic
#2A5AB7 #B72A5A #5AB72A
tetradic
#2A5AB7 #B72AA1 #B7872A #2AB740
square
#2A5AB7 #B72AA1 #B7872A #2AB740
split-complementary
#2A5AB7 #B7402A #A1B72A
monochromatic
#132953 #1F4285 #2A5AB7 #4979D5 #7B9DE1

Accessibility & contrast

On white

6.47
#2A5AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2A5AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AB7
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AB7#FFFFFF#000000##FFFFFF
##2A5AB71.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2065BA
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5ab7;
/* rgb */ color: rgb(42, 90, 183);
/* oklch */ color: oklch(48.8% 0.157 261.9);
Tailwind
colors: {
  custom: {
    50: '#7888cd',
    500: '#2a5ab7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ab7;
$custom-light: #7888cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ab7",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 219.574,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48825,
    "c": 0.1566,
    "h": 261.9
  },
  "luminance": 0.11223
}

Semantic roles & 50–950 ramp

primary
#2A5AB7
secondary
#C9AC74
accent
#AE42E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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