#2A5AAD#2A5AAD

#2A5AAD is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.1% C 0.143 H 260.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#2A5AAD
RGBrgb(42, 90, 173)
HSLhsl(218, 61%, 42%)
HSVhsv(218, 76%, 68%)
CMYKcmyk(75.7%, 48%, 0%, 32.2%)
CIE-LABlab(39.28, 13.62, -49.09)
CIE-LCHlch(39.28, 50.95, 285.51°)
OKLaboklab(48.09% -0.0235 -0.1409)
OKLCHoklch(48.09% 0.143 260.5)
XYZxyz(12.1511, 10.8203, 40.9752)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AAD #AD7D2A
analogous
#2A9CAD #2A5AAD #3B2AAD
triadic
#2A5AAD #AD2A5A #5AAD2A
tetradic
#2A5AAD #AD2A9C #AD7D2A #2AAD3B
square
#2A5AAD #AD2A9C #AD7D2A #2AAD3B
split-complementary
#2A5AAD #AD3B2A #9CAD2A
monochromatic
#12274B #1E407C #2A5AAD #4377D1 #749BDD

Accessibility & contrast

On white

6.64
#2A5AAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2A5AAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AAD
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AAD#FFFFFF#000000##FFFFFF
##2A5AAD1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C63B0
Deuteranopia (green-blind)
#0457AB
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5aad;
/* rgb */ color: rgb(42, 90, 173);
/* oklch */ color: oklch(48.1% 0.143 260.5);
Tailwind
colors: {
  custom: {
    50: '#7688c6',
    500: '#2a5aad',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aad;
$custom-light: #7688c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aad",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 173
  },
  "hsl": {
    "h": 218.015,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48092,
    "c": 0.14287,
    "h": 260.5
  },
  "luminance": 0.10822
}

Semantic roles & 50–950 ramp

primary
#2A5AAD
secondary
#C5A56E
accent
#A944E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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