#2A5BA4#2A5BA4

#2A5BA4 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.7% C 0.129 H 258.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2A5BA4
RGBrgb(42, 91, 164)
HSLhsl(216, 59%, 40%)
HSVhsv(216, 74%, 64%)
CMYKcmyk(74.4%, 44.5%, 0%, 35.7%)
CIE-LABlab(38.99, 9.51, -44.21)
CIE-LCHlch(38.99, 45.22, 282.14°)
OKLaboklab(47.69% -0.026 -0.1266)
OKLCHoklch(47.69% 0.129 258.4)
XYZxyz(11.3943, 10.6535, 36.5706)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BA4 #A4732A
analogous
#2A98A4 #2A5BA4 #362AA4
triadic
#2A5BA4 #A42A5B #5BA42A
tetradic
#2A5BA4 #A42A98 #A4732A #2AA436
square
#2A5BA4 #A42A98 #A4732A #2AA436
split-complementary
#2A5BA4 #A4362A #98A42A
monochromatic
#112543 #1E4073 #2A5BA4 #3E77CD #6E9ADA

Accessibility & contrast

On white

6.71
#2A5BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2A5BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BA4
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BA4#FFFFFF#000000##FFFFFF
##2A5BA41.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3762A7
Deuteranopia (green-blind)
#1F57A3
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5ba4;
/* rgb */ color: rgb(42, 91, 164);
/* oklch */ color: oklch(47.7% 0.129 258.4);
Tailwind
colors: {
  custom: {
    50: '#7488bf',
    500: '#2a5ba4',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ba4;
$custom-light: #7488bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ba4",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 164
  },
  "hsl": {
    "h": 215.902,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47686,
    "c": 0.1292,
    "h": 258.4
  },
  "luminance": 0.10655
}

Semantic roles & 50–950 ramp

primary
#2A5BA4
secondary
#C19E69
accent
#A345E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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