#2A5DB8#2A5DB8

#2A5DB8 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.154 H 260.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2A5DB8
RGBrgb(42, 93, 184)
HSLhsl(218, 63%, 44%)
HSVhsv(218, 77%, 72%)
CMYKcmyk(77.2%, 49.5%, 0%, 27.8%)
CIE-LABlab(40.86, 15.89, -53.00)
CIE-LCHlch(40.86, 55.33, 286.68°)
OKLaboklab(49.54% -0.0243 -0.1524)
OKLCHoklch(49.54% 0.154 260.9)
XYZxyz(13.5178, 11.7801, 46.8995)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DB8 #B8852A
analogous
#2AA4B8 #2A5DB8 #3E2AB8
triadic
#2A5DB8 #B82A5D #5DB82A
tetradic
#2A5DB8 #B82AA4 #B8852A #2AB83E
square
#2A5DB8 #B82AA4 #B8852A #2AB83E
split-complementary
#2A5DB8 #B83E2A #A4B82A
monochromatic
#132B54 #1F4486 #2A5DB8 #4A7CD6 #7BA0E1

Accessibility & contrast

On white

6.26
#2A5DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2A5DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DB8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DB8#FFFFFF#000000##FFFFFF
##2A5DB81.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2767BB
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5db8;
/* rgb */ color: rgb(42, 93, 184);
/* oklch */ color: oklch(49.5% 0.154 260.9);
Tailwind
colors: {
  custom: {
    50: '#798ace',
    500: '#2a5db8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5db8;
$custom-light: #798ace;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5db8",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 184
  },
  "hsl": {
    "h": 218.451,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49544,
    "c": 0.1543,
    "h": 260.9
  },
  "luminance": 0.11782
}

Semantic roles & 50–950 ramp

primary
#2A5DB8
secondary
#C9AB75
accent
#AB42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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