#2A5BA2#2A5BA2

#2A5BA2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.6% C 0.126 H 258.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#2A5BA2
RGBrgb(42, 91, 162)
HSLhsl(216, 59%, 40%)
HSVhsv(216, 74%, 64%)
CMYKcmyk(74.1%, 43.8%, 0%, 36.5%)
CIE-LABlab(38.87, 8.74, -43.22)
CIE-LCHlch(38.87, 44.09, 281.44°)
OKLaboklab(47.55% -0.0264 -0.1236)
OKLCHoklch(47.55% 0.126 258)
XYZxyz(11.2151, 10.5818, 35.6268)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BA2 #A2712A
analogous
#2A97A2 #2A5BA2 #352AA2
triadic
#2A5BA2 #A22A5B #5BA22A
tetradic
#2A5BA2 #A22A97 #A2712A #2AA235
square
#2A5BA2 #A22A97 #A2712A #2AA235
split-complementary
#2A5BA2 #A2352A #97A22A
monochromatic
#112441 #1D4071 #2A5BA2 #3D77CD #6D99D9

Accessibility & contrast

On white

6.74
#2A5BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2A5BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BA2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BA2#FFFFFF#000000##FFFFFF
##2A5BA21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A5
Deuteranopia (green-blind)
#2256A1
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5ba2;
/* rgb */ color: rgb(42, 91, 162);
/* oklch */ color: oklch(47.6% 0.126 258.0);
Tailwind
colors: {
  custom: {
    50: '#7488be',
    500: '#2a5ba2',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ba2;
$custom-light: #7488be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ba2",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 215.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.47551,
    "c": 0.12642,
    "h": 258
  },
  "luminance": 0.10583
}

Semantic roles & 50–950 ramp

primary
#2A5BA2
secondary
#C09C68
accent
#A246E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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