#2A5AB8#2A5AB8

#2A5AB8 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.158 H 262.0°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2A5AB8
RGBrgb(42, 90, 184)
HSLhsl(220, 63%, 44%)
HSVhsv(220, 77%, 72%)
CMYKcmyk(77.2%, 51.1%, 0%, 27.8%)
CIE-LABlab(40.02, 17.85, -54.36)
CIE-LCHlch(40.02, 57.22, 288.18°)
OKLaboklab(48.9% -0.0219 -0.1564)
OKLCHoklch(48.9% 0.158 262)
XYZxyz(13.2596, 11.2637, 46.8134)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AB8 #B8882A
analogous
#2AA1B8 #2A5AB8 #412AB8
triadic
#2A5AB8 #B82A5A #5AB82A
tetradic
#2A5AB8 #B82AA1 #B8882A #2AB841
square
#2A5AB8 #B82AA1 #B8882A #2AB841
split-complementary
#2A5AB8 #B8412A #A1B82A
monochromatic
#132954 #1F4286 #2A5AB8 #4A79D6 #7B9EE1

Accessibility & contrast

On white

6.46
#2A5AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5AB8
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AB8#FFFFFF#000000##FFFFFF
##2A5AB81.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BB
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5ab8;
/* rgb */ color: rgb(42, 90, 184);
/* oklch */ color: oklch(48.9% 0.158 262.0);
Tailwind
colors: {
  custom: {
    50: '#7988ce',
    500: '#2a5ab8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ab8;
$custom-light: #7988ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ab8",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 219.718,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.489,
    "c": 0.15797,
    "h": 262
  },
  "luminance": 0.11265
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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