#2A5FAD#2A5FAD

#2A5FAD is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.137 H 258.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2A5FAD
RGBrgb(42, 95, 173)
HSLhsl(216, 61%, 42%)
HSVhsv(216, 76%, 68%)
CMYKcmyk(75.7%, 45.1%, 0%, 32.2%)
CIE-LABlab(40.72, 10.36, -46.77)
CIE-LCHlch(40.72, 47.90, 282.49°)
OKLaboklab(49.21% -0.0278 -0.134)
OKLCHoklch(49.21% 0.137 258.3)
XYZxyz(12.5871, 11.6924, 41.1205)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FAD #AD782A
analogous
#2AA1AD #2A5FAD #362AAD
triadic
#2A5FAD #AD2A5F #5FAD2A
tetradic
#2A5FAD #AD2AA1 #AD782A #2AAD36
square
#2A5FAD #AD2AA1 #AD782A #2AAD36
split-complementary
#2A5FAD #AD362A #A1AD2A
monochromatic
#12294B #1E447C #2A5FAD #437DD1 #749FDD

Accessibility & contrast

On white

6.29
#2A5FAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2A5FAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FAD
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FAD#FFFFFF#000000##FFFFFF
##2A5FAD1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3766B0
Deuteranopia (green-blind)
#1C5AAB
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5fad;
/* rgb */ color: rgb(42, 95, 173);
/* oklch */ color: oklch(49.2% 0.137 258.3);
Tailwind
colors: {
  custom: {
    50: '#768bc6',
    500: '#2a5fad',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fad;
$custom-light: #768bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fad",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 173
  },
  "hsl": {
    "h": 215.725,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49206,
    "c": 0.13685,
    "h": 258.3
  },
  "luminance": 0.11694
}

Semantic roles & 50–950 ramp

primary
#2A5FAD
secondary
#C5A26E
accent
#A344E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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