#2A5FAE#2A5FAE

#2A5FAE is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.138 H 258.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2A5FAE
RGBrgb(42, 95, 174)
HSLhsl(216, 61%, 42%)
HSVhsv(216, 76%, 68%)
CMYKcmyk(75.9%, 45.4%, 0%, 31.8%)
CIE-LABlab(40.79, 10.75, -47.26)
CIE-LCHlch(40.79, 48.46, 282.81°)
OKLaboklab(49.28% -0.0276 -0.1354)
OKLCHoklch(49.28% 0.138 258.5)
XYZxyz(12.6842, 11.7312, 41.6320)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FAE #AE792A
analogous
#2AA1AE #2A5FAE #372AAE
triadic
#2A5FAE #AE2A5F #5FAE2A
tetradic
#2A5FAE #AE2AA1 #AE792A #2AAE37
square
#2A5FAE #AE2AA1 #AE792A #2AAE37
split-complementary
#2A5FAE #AE372A #A1AE2A
monochromatic
#12294B #1E447D #2A5FAE #437DD2 #759FDE

Accessibility & contrast

On white

6.28
#2A5FAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2A5FAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FAE
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FAE#FFFFFF#000000##FFFFFF
##2A5FAE1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B1
Deuteranopia (green-blind)
#1A5BAC
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5fae;
/* rgb */ color: rgb(42, 95, 174);
/* oklch */ color: oklch(49.3% 0.138 258.5);
Tailwind
colors: {
  custom: {
    50: '#768bc7',
    500: '#2a5fae',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fae;
$custom-light: #768bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fae",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 174
  },
  "hsl": {
    "h": 215.909,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49275,
    "c": 0.13822,
    "h": 258.5
  },
  "luminance": 0.11733
}

Semantic roles & 50–950 ramp

primary
#2A5FAE
secondary
#C5A26F
accent
#A444E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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