#2A5AA4#2A5AA4

#2A5AA4 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.5% C 0.130 H 258.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2A5AA4
RGBrgb(42, 90, 164)
HSLhsl(216, 59%, 40%)
HSVhsv(216, 74%, 64%)
CMYKcmyk(74.4%, 45.1%, 0%, 35.7%)
CIE-LABlab(38.70, 10.16, -44.68)
CIE-LCHlch(38.70, 45.82, 282.81°)
OKLaboklab(47.46% -0.0251 -0.128)
OKLCHoklch(47.46% 0.13 258.9)
XYZxyz(11.3094, 10.4837, 36.5423)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA4 #A4742A
analogous
#2A97A4 #2A5AA4 #372AA4
triadic
#2A5AA4 #A42A5A #5AA42A
tetradic
#2A5AA4 #A42A97 #A4742A #2AA437
square
#2A5AA4 #A42A97 #A4742A #2AA437
split-complementary
#2A5AA4 #A4372A #97A42A
monochromatic
#112543 #1E3F73 #2A5AA4 #3E76CD #6E99DA

Accessibility & contrast

On white

6.78
#2A5AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2A5AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AA4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA4#FFFFFF#000000##FFFFFF
##2A5AA41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3561A7
Deuteranopia (green-blind)
#1C56A3
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a5aa4;
/* rgb */ color: rgb(42, 90, 164);
/* oklch */ color: oklch(47.5% 0.130 258.9);
Tailwind
colors: {
  custom: {
    50: '#7488bf',
    500: '#2a5aa4',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa4;
$custom-light: #7488bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa4",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 216.393,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47459,
    "c": 0.13039,
    "h": 258.9
  },
  "luminance": 0.10485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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