#2A5DAB#2A5DAB

#2A5DAB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.6% C 0.136 H 258.8°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2A5DAB
RGBrgb(42, 93, 171)
HSLhsl(216, 61%, 42%)
HSVhsv(216, 75%, 67%)
CMYKcmyk(75.4%, 45.6%, 0%, 32.9%)
CIE-LABlab(40.01, 10.89, -46.72)
CIE-LCHlch(40.01, 47.98, 283.13°)
OKLaboklab(48.62% -0.0264 -0.1339)
OKLCHoklch(48.62% 0.136 258.8)
XYZxyz(12.2172, 11.2598, 40.0497)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DAB #AB782A
analogous
#2A9EAB #2A5DAB #382AAB
triadic
#2A5DAB #AB2A5D #5DAB2A
tetradic
#2A5DAB #AB2A9E #AB782A #2AAB38
square
#2A5DAB #AB2A9E #AB782A #2AAB38
split-complementary
#2A5DAB #AB382A #9EAB2A
monochromatic
#122849 #1E427A #2A5DAB #427AD1 #739DDD

Accessibility & contrast

On white

6.46
#2A5DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2A5DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DAB
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DAB#FFFFFF#000000##FFFFFF
##2A5DAB1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AE
Deuteranopia (green-blind)
#1959A9
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a5dab;
/* rgb */ color: rgb(42, 93, 171);
/* oklch */ color: oklch(48.6% 0.136 258.8);
Tailwind
colors: {
  custom: {
    50: '#768ac4',
    500: '#2a5dab',
    950: '#000000',
  },
}
SCSS
$custom: #2a5dab;
$custom-light: #768ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5dab",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 171
  },
  "hsl": {
    "h": 216.279,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48619,
    "c": 0.13648,
    "h": 258.8
  },
  "luminance": 0.11261
}

Semantic roles & 50–950 ramp

primary
#2A5DAB
secondary
#C4A26D
accent
#A544E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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