#2A5AA7#2A5AA7

#2A5AA7 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.7% C 0.135 H 259.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2A5AA7
RGBrgb(42, 90, 167)
HSLhsl(217, 60%, 41%)
HSVhsv(217, 75%, 65%)
CMYKcmyk(74.9%, 46.1%, 0%, 34.5%)
CIE-LABlab(38.89, 11.32, -46.16)
CIE-LCHlch(38.89, 47.53, 283.77°)
OKLaboklab(47.67% -0.0245 -0.1323)
OKLCHoklch(47.67% 0.135 259.5)
XYZxyz(11.5835, 10.5933, 37.9860)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA7 #A7772A
analogous
#2A98A7 #2A5AA7 #382AA7
triadic
#2A5AA7 #A72A5A #5AA72A
tetradic
#2A5AA7 #A72A98 #A7772A #2AA738
square
#2A5AA7 #A72A98 #A7772A #2AA738
split-complementary
#2A5AA7 #A7382A #98A72A
monochromatic
#112545 #1E4076 #2A5AA7 #3F76CF #7099DB

Accessibility & contrast

On white

6.73
#2A5AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5AA7
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA7#FFFFFF#000000##FFFFFF
##2A5AA71.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3262AA
Deuteranopia (green-blind)
#1756A5
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5aa7;
/* rgb */ color: rgb(42, 90, 167);
/* oklch */ color: oklch(47.7% 0.135 259.5);
Tailwind
colors: {
  custom: {
    50: '#7588c2',
    500: '#2a5aa7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa7;
$custom-light: #7588c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa7",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 167
  },
  "hsl": {
    "h": 216.96,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47667,
    "c": 0.13456,
    "h": 259.5
  },
  "luminance": 0.10595
}

Semantic roles & 50–950 ramp

primary
#2A5AA7
secondary
#C2A16B
accent
#A645E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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