#2A5AA5#2A5AA5

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

Color values

HEX#2A5AA5
RGBrgb(42, 90, 165)
HSLhsl(217, 59%, 41%)
HSVhsv(217, 75%, 65%)
CMYKcmyk(74.5%, 45.5%, 0%, 35.3%)
CIE-LABlab(38.76, 10.55, -45.18)
CIE-LCHlch(38.76, 46.39, 283.14°)
OKLaboklab(47.53% -0.0249 -0.1294)
OKLCHoklch(47.53% 0.132 259.1)
XYZxyz(11.4001, 10.5199, 37.0197)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA5 #A5752A
analogous
#2A97A5 #2A5AA5 #372AA5
triadic
#2A5AA5 #A52A5A #5AA52A
tetradic
#2A5AA5 #A52A97 #A5752A #2AA537
square
#2A5AA5 #A52A97 #A5752A #2AA537
split-complementary
#2A5AA5 #A5372A #97A52A
monochromatic
#112543 #1E3F74 #2A5AA5 #3E76CE #6F99DA

Accessibility & contrast

On white

6.77
#2A5AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5AA5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA5#FFFFFF#000000##FFFFFF
##2A5AA51.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A8
Deuteranopia (green-blind)
#1B56A3
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a5aa5;
/* rgb */ color: rgb(42, 90, 165);
/* oklch */ color: oklch(47.5% 0.132 259.1);
Tailwind
colors: {
  custom: {
    50: '#7488c0',
    500: '#2a5aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa5;
$custom-light: #7488c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa5",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 216.585,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47528,
    "c": 0.13178,
    "h": 259.1
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#2A5AA5
secondary
#C19F69
accent
#A545E3
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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