#2A4EC1#2A4EC1

#2A4EC1 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.2% C 0.185 H 266.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2A4EC1
RGBrgb(42, 78, 193)
HSLhsl(226, 64%, 46%)
HSVhsv(226, 78%, 76%)
CMYKcmyk(78.2%, 59.6%, 0%, 24.3%)
CIE-LABlab(37.46, 29.15, -63.78)
CIE-LCHlch(37.46, 70.13, 294.56°)
OKLaboklab(47.18% -0.0128 -0.1843)
OKLCHoklch(47.18% 0.185 266)
XYZxyz(13.3015, 9.7897, 51.6303)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EC1 #C19D2A
analogous
#2A99C1 #2A4EC1 #512AC1
triadic
#2A4EC1 #C12A4E #4EC12A
tetradic
#2A4EC1 #C12A99 #C19D2A #2AC151
square
#2A4EC1 #C12A99 #C19D2A #2AC151
split-complementary
#2A4EC1 #C1512A #99C12A
monochromatic
#14255C #1F3A8F #2A4EC1 #4F70D9 #8299E4

Accessibility & contrast

On white

7.10
#2A4EC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2A4EC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EC1
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EC1#FFFFFF#000000##FFFFFF
##2A4EC11.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a4ec1;
/* rgb */ color: rgb(42, 78, 193);
/* oklch */ color: oklch(47.2% 0.185 266.0);
Tailwind
colors: {
  custom: {
    50: '#7c7fd5',
    500: '#2a4ec1',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ec1;
$custom-light: #7c7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ec1",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 225.695,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47182,
    "c": 0.18477,
    "h": 266
  },
  "luminance": 0.09791
}

Semantic roles & 50–950 ramp

primary
#2A4EC1
secondary
#CDB97A
accent
#C041E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A4EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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