#2A5DAD#2A5DAD

#2A5DAD is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.8% C 0.139 H 259.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#2A5DAD
RGBrgb(42, 93, 173)
HSLhsl(217, 61%, 42%)
HSVhsv(217, 76%, 68%)
CMYKcmyk(75.7%, 46.2%, 0%, 32.2%)
CIE-LABlab(40.14, 11.66, -47.70)
CIE-LCHlch(40.14, 49.10, 283.74°)
OKLaboklab(48.76% -0.0261 -0.1368)
OKLCHoklch(48.76% 0.139 259.2)
XYZxyz(12.4093, 11.3367, 41.0613)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DAD #AD7A2A
analogous
#2A9FAD #2A5DAD #382AAD
triadic
#2A5DAD #AD2A5D #5DAD2A
tetradic
#2A5DAD #AD2A9F #AD7A2A #2AAD38
square
#2A5DAD #AD2A9F #AD7A2A #2AAD38
split-complementary
#2A5DAD #AD382A #9FAD2A
monochromatic
#12284B #1E437C #2A5DAD #437AD1 #749DDD

Accessibility & contrast

On white

6.43
#2A5DAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2A5DAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DAD
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DAD#FFFFFF#000000##FFFFFF
##2A5DAD1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3365B0
Deuteranopia (green-blind)
#1559AB
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5dad;
/* rgb */ color: rgb(42, 93, 173);
/* oklch */ color: oklch(48.8% 0.139 259.2);
Tailwind
colors: {
  custom: {
    50: '#768ac6',
    500: '#2a5dad',
    950: '#000000',
  },
}
SCSS
$custom: #2a5dad;
$custom-light: #768ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5dad",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 173
  },
  "hsl": {
    "h": 216.641,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48757,
    "c": 0.13923,
    "h": 259.2
  },
  "luminance": 0.11338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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