#2A5DB4#2A5DB4

#2A5DB4 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.149 H 260.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2A5DB4
RGBrgb(42, 93, 180)
HSLhsl(218, 62%, 44%)
HSVhsv(218, 77%, 71%)
CMYKcmyk(76.7%, 48.3%, 0%, 29.4%)
CIE-LABlab(40.60, 14.35, -51.09)
CIE-LCHlch(40.60, 53.06, 285.69°)
OKLaboklab(49.25% -0.0249 -0.1467)
OKLCHoklch(49.25% 0.149 260.4)
XYZxyz(13.1044, 11.6147, 44.7224)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DB4 #B4812A
analogous
#2AA2B4 #2A5DB4 #3C2AB4
triadic
#2A5DB4 #B42A5D #5DB42A
tetradic
#2A5DB4 #B42AA2 #B4812A #2AB43C
square
#2A5DB4 #B42AA2 #B4812A #2AB43C
split-complementary
#2A5DB4 #B43C2A #A2B42A
monochromatic
#132A51 #1E4382 #2A5DB4 #477BD4 #799FE0

Accessibility & contrast

On white

6.32
#2A5DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2A5DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DB4
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DB4#FFFFFF#000000##FFFFFF
##2A5DB41.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B7
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5db4;
/* rgb */ color: rgb(42, 93, 180);
/* oklch */ color: oklch(49.3% 0.149 260.4);
Tailwind
colors: {
  custom: {
    50: '#788acb',
    500: '#2a5db4',
    950: '#000000',
  },
}
SCSS
$custom: #2a5db4;
$custom-light: #788acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5db4",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 217.826,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49254,
    "c": 0.14884,
    "h": 260.4
  },
  "luminance": 0.11616
}

Semantic roles & 50–950 ramp

primary
#2A5DB4
secondary
#C8A872
accent
#A943E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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