#2A5EC0#2A5EC0

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

Color values

HEX#2A5EC0
RGBrgb(42, 94, 192)
HSLhsl(219, 64%, 46%)
HSVhsv(219, 78%, 75%)
CMYKcmyk(78.1%, 51%, 0%, 24.7%)
CIE-LABlab(41.69, 18.30, -56.33)
CIE-LCHlch(41.69, 59.23, 288.00°)
OKLaboklab(50.35% -0.024 -0.1621)
OKLCHoklch(50.35% 0.164 261.6)
XYZxyz(14.4685, 12.3017, 51.4709)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5EC0 #C08C2A
analogous
#2AA9C0 #2A5EC0 #412AC0
triadic
#2A5EC0 #C02A5E #5EC02A
tetradic
#2A5EC0 #C02AA9 #C08C2A #2AC041
square
#2A5EC0 #C02AA9 #C08C2A #2AC041
split-complementary
#2A5EC0 #C0412A #A9C02A
monochromatic
#142D5C #1F458E #2A5EC0 #4F7ED8 #81A3E3

Accessibility & contrast

On white

6.07
#2A5EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2A5EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5EC0
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5EC0#FFFFFF#000000##FFFFFF
##2A5EC01.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6AC4
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5ec0;
/* rgb */ color: rgb(42, 94, 192);
/* oklch */ color: oklch(50.4% 0.164 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bd4',
    500: '#2a5ec0',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ec0;
$custom-light: #7a8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ec0",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 192
  },
  "hsl": {
    "h": 219.2,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50351,
    "c": 0.16392,
    "h": 261.6
  },
  "luminance": 0.12303
}

Semantic roles & 50–950 ramp

primary
#2A5EC0
secondary
#CCB07A
accent
#AD41E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A5EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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