#2A5AB2#2A5AB2

#2A5AB2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.5% C 0.150 H 261.3°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#2A5AB2
RGBrgb(42, 90, 178)
HSLhsl(219, 62%, 43%)
HSVhsv(219, 76%, 70%)
CMYKcmyk(76.4%, 49.4%, 0%, 30.2%)
CIE-LABlab(39.61, 15.54, -51.50)
CIE-LCHlch(39.61, 53.80, 286.79°)
OKLaboklab(48.45% -0.0227 -0.148)
OKLCHoklch(48.45% 0.15 261.3)
XYZxyz(12.6440, 11.0175, 43.5711)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AB2 #B2822A
analogous
#2A9EB2 #2A5AB2 #3E2AB2
triadic
#2A5AB2 #B22A5A #5AB22A
tetradic
#2A5AB2 #B22A9E #B2822A #2AB23E
square
#2A5AB2 #B22A9E #B2822A #2AB23E
split-complementary
#2A5AB2 #B23E2A #9EB22A
monochromatic
#13284F #1E4180 #2A5AB2 #4678D3 #779CDF

Accessibility & contrast

On white

6.55
#2A5AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2A5AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AB2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AB2#FFFFFF#000000##FFFFFF
##2A5AB21.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5ab2;
/* rgb */ color: rgb(42, 90, 178);
/* oklch */ color: oklch(48.5% 0.150 261.3);
Tailwind
colors: {
  custom: {
    50: '#7788ca',
    500: '#2a5ab2',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ab2;
$custom-light: #7788ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ab2",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 218.824,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48454,
    "c": 0.14976,
    "h": 261.3
  },
  "luminance": 0.11019
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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