#2A5DBA#2A5DBA

#2A5DBA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.157 H 261.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2A5DBA
RGBrgb(42, 93, 186)
HSLhsl(219, 63%, 45%)
HSVhsv(219, 77%, 73%)
CMYKcmyk(77.4%, 50%, 0%, 27.1%)
CIE-LABlab(41.00, 16.65, -53.95)
CIE-LCHlch(41.00, 56.46, 287.15°)
OKLaboklab(49.69% -0.024 -0.1552)
OKLCHoklch(49.69% 0.157 261.2)
XYZxyz(13.7289, 11.8645, 48.0114)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5DBA #BA872A
analogous
#2AA5BA #2A5DBA #3F2ABA
triadic
#2A5DBA #BA2A5D #5DBA2A
tetradic
#2A5DBA #BA2AA5 #BA872A #2ABA3F
square
#2A5DBA #BA2AA5 #BA872A #2ABA3F
split-complementary
#2A5DBA #BA3F2A #A5BA2A
monochromatic
#132B56 #1F4488 #2A5DBA #4B7CD6 #7DA1E2

Accessibility & contrast

On white

6.23
#2A5DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2A5DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5DBA
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5DBA#FFFFFF#000000##FFFFFF
##2A5DBA1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5dba;
/* rgb */ color: rgb(42, 93, 186);
/* oklch */ color: oklch(49.7% 0.157 261.2);
Tailwind
colors: {
  custom: {
    50: '#798acf',
    500: '#2a5dba',
    950: '#000000',
  },
}
SCSS
$custom: #2a5dba;
$custom-light: #798acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5dba",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 186
  },
  "hsl": {
    "h": 218.75,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49691,
    "c": 0.15702,
    "h": 261.2
  },
  "luminance": 0.11866
}

Semantic roles & 50–950 ramp

primary
#2A5DBA
secondary
#CAAC76
accent
#AC42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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