#2A5DAE#2A5DAE

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

Color values

HEX#2A5DAE
RGBrgb(42, 93, 174)
HSLhsl(217, 61%, 42%)
HSVhsv(217, 76%, 68%)
CMYKcmyk(75.9%, 46.6%, 0%, 31.8%)
CIE-LABlab(40.21, 12.05, -48.19)
CIE-LCHlch(40.21, 49.67, 284.04°)
OKLaboklab(48.83% -0.0259 -0.1382)
OKLCHoklch(48.83% 0.141 259.4)
XYZxyz(12.5064, 11.3755, 41.5728)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DAE #AE7B2A
analogous
#2A9FAE #2A5DAE #392AAE
triadic
#2A5DAE #AE2A5D #5DAE2A
tetradic
#2A5DAE #AE2A9F #AE7B2A #2AAE39
square
#2A5DAE #AE2A9F #AE7B2A #2AAE39
split-complementary
#2A5DAE #AE392A #9FAE2A
monochromatic
#12284B #1E437D #2A5DAE #437AD2 #759DDE

Accessibility & contrast

On white

6.41
#2A5DAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2A5DAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DAE
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DAE#FFFFFF#000000##FFFFFF
##2A5DAE1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3265B1
Deuteranopia (green-blind)
#1259AC
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5dae;
/* rgb */ color: rgb(42, 93, 174);
/* oklch */ color: oklch(48.8% 0.141 259.4);
Tailwind
colors: {
  custom: {
    50: '#768ac7',
    500: '#2a5dae',
    950: '#000000',
  },
}
SCSS
$custom: #2a5dae;
$custom-light: #768ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5dae",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 174
  },
  "hsl": {
    "h": 216.818,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48827,
    "c": 0.14061,
    "h": 259.4
  },
  "luminance": 0.11377
}

Semantic roles & 50–950 ramp

primary
#2A5DAE
secondary
#C5A46F
accent
#A644E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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