#2A5EAE#2A5EAE

#2A5EAE is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.139 H 258.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2A5EAE
RGBrgb(42, 94, 174)
HSLhsl(216, 61%, 42%)
HSVhsv(216, 76%, 68%)
CMYKcmyk(75.9%, 46%, 0%, 31.8%)
CIE-LABlab(40.50, 11.40, -47.72)
CIE-LCHlch(40.50, 49.06, 283.43°)
OKLaboklab(49.05% -0.0268 -0.1368)
OKLCHoklch(49.05% 0.139 258.9)
XYZxyz(12.5947, 11.5522, 41.6022)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EAE #AE7A2A
analogous
#2AA0AE #2A5EAE #382AAE
triadic
#2A5EAE #AE2A5E #5EAE2A
tetradic
#2A5EAE #AE2AA0 #AE7A2A #2AAE38
square
#2A5EAE #AE2AA0 #AE7A2A #2AAE38
split-complementary
#2A5EAE #AE382A #A0AE2A
monochromatic
#12294B #1E437D #2A5EAE #437CD2 #759EDE

Accessibility & contrast

On white

6.34
#2A5EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2A5EAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EAE
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EAE#FFFFFF#000000##FFFFFF
##2A5EAE1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3466B1
Deuteranopia (green-blind)
#175AAC
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5eae;
/* rgb */ color: rgb(42, 94, 174);
/* oklch */ color: oklch(49.1% 0.139 258.9);
Tailwind
colors: {
  custom: {
    50: '#768bc7',
    500: '#2a5eae',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eae;
$custom-light: #768bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eae",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 174
  },
  "hsl": {
    "h": 216.364,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49051,
    "c": 0.13941,
    "h": 258.9
  },
  "luminance": 0.11554
}

Semantic roles & 50–950 ramp

primary
#2A5EAE
secondary
#C5A36F
accent
#A544E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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