#2A5EAB#2A5EAB

#2A5EAB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.135 H 258.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2A5EAB
RGBrgb(42, 94, 171)
HSLhsl(216, 61%, 42%)
HSVhsv(216, 75%, 67%)
CMYKcmyk(75.4%, 45%, 0%, 32.9%)
CIE-LABlab(40.31, 10.25, -46.25)
CIE-LCHlch(40.31, 47.38, 282.49°)
OKLaboklab(48.84% -0.0273 -0.1325)
OKLCHoklch(48.84% 0.135 258.4)
XYZxyz(12.3056, 11.4365, 40.0791)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EAB #AB772A
analogous
#2A9FAB #2A5EAB #372AAB
triadic
#2A5EAB #AB2A5E #5EAB2A
tetradic
#2A5EAB #AB2A9F #AB772A #2AAB37
square
#2A5EAB #AB2A9F #AB772A #2AAB37
split-complementary
#2A5EAB #AB372A #9FAB2A
monochromatic
#122849 #1E437A #2A5EAB #427BD1 #739DDD

Accessibility & contrast

On white

6.39
#2A5EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2A5EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EAB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EAB#FFFFFF#000000##FFFFFF
##2A5EAB1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3765AE
Deuteranopia (green-blind)
#1D5AA9
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5eab;
/* rgb */ color: rgb(42, 94, 171);
/* oklch */ color: oklch(48.8% 0.135 258.4);
Tailwind
colors: {
  custom: {
    50: '#768bc4',
    500: '#2a5eab',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eab;
$custom-light: #768bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eab",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 171
  },
  "hsl": {
    "h": 215.814,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48844,
    "c": 0.13529,
    "h": 258.4
  },
  "luminance": 0.11438
}

Semantic roles & 50–950 ramp

primary
#2A5EAB
secondary
#C4A16D
accent
#A344E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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