#2A5EC1#2A5EC1

#2A5EC1 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.165 H 261.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#2A5EC1
RGBrgb(42, 94, 193)
HSLhsl(219, 64%, 46%)
HSVhsv(219, 78%, 76%)
CMYKcmyk(78.2%, 51.3%, 0%, 24.3%)
CIE-LABlab(41.76, 18.68, -56.80)
CIE-LCHlch(41.76, 59.79, 288.21°)
OKLaboklab(50.43% -0.0239 -0.1635)
OKLCHoklch(50.43% 0.165 261.7)
XYZxyz(14.5797, 12.3462, 52.0564)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EC1 #C18D2A
analogous
#2AA9C1 #2A5EC1 #422AC1
triadic
#2A5EC1 #C12A5E #5EC12A
tetradic
#2A5EC1 #C12AA9 #C18D2A #2AC142
square
#2A5EC1 #C12AA9 #C18D2A #2AC142
split-complementary
#2A5EC1 #C1422A #A9C12A
monochromatic
#142D5C #1F468F #2A5EC1 #4F7FD9 #82A3E4

Accessibility & contrast

On white

6.05
#2A5EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#2A5EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EC1
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EC1#FFFFFF#000000##FFFFFF
##2A5EC11.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6AC5
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a5ec1;
/* rgb */ color: rgb(42, 94, 193);
/* oklch */ color: oklch(50.4% 0.165 261.7);
Tailwind
colors: {
  custom: {
    50: '#7b8bd4',
    500: '#2a5ec1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ec1;
$custom-light: #7b8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ec1",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 219.338,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50426,
    "c": 0.16527,
    "h": 261.7
  },
  "luminance": 0.12348
}

Semantic roles & 50–950 ramp

primary
#2A5EC1
secondary
#CDB07A
accent
#AE41E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A5EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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