#2A5EB9#2A5EB9

#2A5EB9 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.154 H 260.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2A5EB9
RGBrgb(42, 94, 185)
HSLhsl(218, 63%, 45%)
HSVhsv(218, 77%, 73%)
CMYKcmyk(77.3%, 49.2%, 0%, 27.5%)
CIE-LABlab(41.21, 15.62, -53.02)
CIE-LCHlch(41.21, 55.27, 286.41°)
OKLaboklab(49.83% -0.025 -0.1524)
OKLCHoklch(49.83% 0.154 260.7)
XYZxyz(13.7113, 11.9989, 47.4829)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EB9 #B9852A
analogous
#2AA6B9 #2A5EB9 #3E2AB9
triadic
#2A5EB9 #B92A5E #5EB92A
tetradic
#2A5EB9 #B92AA6 #B9852A #2AB93E
square
#2A5EB9 #B92AA6 #B9852A #2AB93E
split-complementary
#2A5EB9 #B93E2A #A6B92A
monochromatic
#132B55 #1F4587 #2A5EB9 #4A7DD6 #7CA1E1

Accessibility & contrast

On white

6.18
#2A5EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2A5EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EB9
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EB9#FFFFFF#000000##FFFFFF
##2A5EB91.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2968BC
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5eb9;
/* rgb */ color: rgb(42, 94, 185);
/* oklch */ color: oklch(49.8% 0.154 260.7);
Tailwind
colors: {
  custom: {
    50: '#798bcf',
    500: '#2a5eb9',
    950: '#000000',
  },
}
SCSS
$custom: #2a5eb9;
$custom-light: #798bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5eb9",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 185
  },
  "hsl": {
    "h": 218.182,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49834,
    "c": 0.15445,
    "h": 260.7
  },
  "luminance": 0.12
}

Semantic roles & 50–950 ramp

primary
#2A5EB9
secondary
#CAAB75
accent
#AA42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A5EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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