#2A5AB9#2A5AB9

#2A5AB9 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.0% C 0.159 H 262.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#2A5AB9
RGBrgb(42, 90, 185)
HSLhsl(220, 63%, 45%)
HSVhsv(220, 77%, 73%)
CMYKcmyk(77.3%, 51.4%, 0%, 27.5%)
CIE-LABlab(40.09, 18.23, -54.83)
CIE-LCHlch(40.09, 57.79, 288.39°)
OKLaboklab(48.98% -0.0218 -0.1578)
OKLCHoklch(48.98% 0.159 262.1)
XYZxyz(13.3648, 11.3058, 47.3674)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AB9 #B9892A
analogous
#2AA2B9 #2A5AB9 #412AB9
triadic
#2A5AB9 #B92A5A #5AB92A
tetradic
#2A5AB9 #B92AA2 #B9892A #2AB941
square
#2A5AB9 #B92AA2 #B9892A #2AB941
split-complementary
#2A5AB9 #B9412A #A2B92A
monochromatic
#132955 #1F4287 #2A5AB9 #4A79D6 #7C9EE1

Accessibility & contrast

On white

6.44
#2A5AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2A5AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AB9
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AB9#FFFFFF#000000##FFFFFF
##2A5AB91.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C65BC
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5ab9;
/* rgb */ color: rgb(42, 90, 185);
/* oklch */ color: oklch(49.0% 0.159 262.1);
Tailwind
colors: {
  custom: {
    50: '#7988cf',
    500: '#2a5ab9',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ab9;
$custom-light: #7988cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ab9",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 185
  },
  "hsl": {
    "h": 219.86,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48975,
    "c": 0.15933,
    "h": 262.1
  },
  "luminance": 0.11307
}

Semantic roles & 50–950 ramp

primary
#2A5AB9
secondary
#CAAD75
accent
#AF42E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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