#2A5AB3#2A5AB3

#2A5AB3 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.151 H 261.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#2A5AB3
RGBrgb(42, 90, 179)
HSLhsl(219, 62%, 43%)
HSVhsv(219, 77%, 70%)
CMYKcmyk(76.5%, 49.7%, 0%, 29.8%)
CIE-LABlab(39.68, 15.93, -51.98)
CIE-LCHlch(39.68, 54.37, 287.04°)
OKLaboklab(48.53% -0.0226 -0.1494)
OKLCHoklch(48.53% 0.151 261.4)
XYZxyz(12.7448, 11.0578, 44.1018)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AB3 #B3832A
analogous
#2A9EB3 #2A5AB3 #3E2AB3
triadic
#2A5AB3 #B32A5A #5AB32A
tetradic
#2A5AB3 #B32A9E #B3832A #2AB33E
square
#2A5AB3 #B32A9E #B3832A #2AB33E
split-complementary
#2A5AB3 #B33E2A #9EB32A
monochromatic
#132850 #1E4181 #2A5AB3 #4678D4 #789CDF

Accessibility & contrast

On white

6.54
#2A5AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2A5AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AB3
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AB3#FFFFFF#000000##FFFFFF
##2A5AB31.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B6
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5ab3;
/* rgb */ color: rgb(42, 90, 179);
/* oklch */ color: oklch(48.5% 0.151 261.4);
Tailwind
colors: {
  custom: {
    50: '#7888ca',
    500: '#2a5ab3',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ab3;
$custom-light: #7888ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ab3",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 179
  },
  "hsl": {
    "h": 218.978,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48528,
    "c": 0.15113,
    "h": 261.4
  },
  "luminance": 0.11059
}

Semantic roles & 50–950 ramp

primary
#2A5AB3
secondary
#C7A972
accent
#AC43E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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