#2A5CAD#2A5CAD

#2A5CAD is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.5% C 0.140 H 259.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#2A5CAD
RGBrgb(42, 92, 173)
HSLhsl(217, 61%, 42%)
HSVhsv(217, 76%, 68%)
CMYKcmyk(75.7%, 46.8%, 0%, 32.2%)
CIE-LABlab(39.85, 12.31, -48.16)
CIE-LCHlch(39.85, 49.71, 284.34°)
OKLaboklab(48.54% -0.0252 -0.1382)
OKLCHoklch(48.54% 0.14 259.7)
XYZxyz(12.3221, 11.1623, 41.0322)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CAD #AD7B2A
analogous
#2A9EAD #2A5CAD #392AAD
triadic
#2A5CAD #AD2A5C #5CAD2A
tetradic
#2A5CAD #AD2A9E #AD7B2A #2AAD39
square
#2A5CAD #AD2A9E #AD7B2A #2AAD39
split-complementary
#2A5CAD #AD392A #9EAD2A
monochromatic
#12284B #1E427C #2A5CAD #4379D1 #749CDD

Accessibility & contrast

On white

6.50
#2A5CAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2A5CAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CAD
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CAD#FFFFFF#000000##FFFFFF
##2A5CAD1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3164B0
Deuteranopia (green-blind)
#1058AB
Tritanopia (blue-blind)
#006F7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5cad;
/* rgb */ color: rgb(42, 92, 173);
/* oklch */ color: oklch(48.5% 0.140 259.7);
Tailwind
colors: {
  custom: {
    50: '#7689c6',
    500: '#2a5cad',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cad;
$custom-light: #7689c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cad",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 173
  },
  "hsl": {
    "h": 217.099,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48535,
    "c": 0.14044,
    "h": 259.7
  },
  "luminance": 0.11164
}

Semantic roles & 50–950 ramp

primary
#2A5CAD
secondary
#C5A46E
accent
#A744E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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