#2A5EA7#2A5EA7

#2A5EA7 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.6% C 0.130 H 257.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2A5EA7
RGBrgb(42, 94, 167)
HSLhsl(215, 60%, 41%)
HSVhsv(215, 75%, 65%)
CMYKcmyk(74.9%, 43.7%, 0%, 34.5%)
CIE-LABlab(40.06, 8.71, -44.28)
CIE-LCHlch(40.06, 45.13, 281.13°)
OKLaboklab(48.57% -0.0281 -0.1267)
OKLCHoklch(48.57% 0.13 257.5)
XYZxyz(11.9300, 11.2863, 38.1015)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EA7 #A7732A
analogous
#2A9CA7 #2A5EA7 #342AA7
triadic
#2A5EA7 #A72A5E #5EA72A
tetradic
#2A5EA7 #A72A9C #A7732A #2AA734
square
#2A5EA7 #A72A9C #A7732A #2AA734
split-complementary
#2A5EA7 #A7342A #9CA72A
monochromatic
#112745 #1E4276 #2A5EA7 #3F7BCF #709DDB

Accessibility & contrast

On white

6.45
#2A5EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2A5EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EA7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EA7#FFFFFF#000000##FFFFFF
##2A5EA71.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AA
Deuteranopia (green-blind)
#2359A6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5ea7;
/* rgb */ color: rgb(42, 94, 167);
/* oklch */ color: oklch(48.6% 0.130 257.5);
Tailwind
colors: {
  custom: {
    50: '#758bc1',
    500: '#2a5ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ea7;
$custom-light: #758bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ea7",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 215.04,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48572,
    "c": 0.12979,
    "h": 257.5
  },
  "luminance": 0.11288
}

Semantic roles & 50–950 ramp

primary
#2A5EA7
secondary
#C29E6B
accent
#A145E3
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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