#2A4EC7#2A4EC7

#2A4EC7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.7% C 0.193 H 266.2°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#2A4EC7
RGBrgb(42, 78, 199)
HSLhsl(226, 65%, 47%)
HSVhsv(226, 79%, 78%)
CMYKcmyk(78.9%, 60.8%, 0%, 22%)
CIE-LABlab(37.96, 31.40, -66.47)
CIE-LCHlch(37.96, 73.52, 295.28°)
OKLaboklab(47.7% -0.0127 -0.1922)
OKLCHoklch(47.7% 0.193 266.2)
XYZxyz(13.9844, 10.0629, 55.2271)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EC7 #C7A32A
analogous
#2A9DC7 #2A4EC7 #552AC7
triadic
#2A4EC7 #C72A4E #4EC72A
tetradic
#2A4EC7 #C72A9D #C7A32A #2AC755
square
#2A4EC7 #C72A9D #C7A32A #2AC755
split-complementary
#2A4EC7 #C7552A #9DC72A
monochromatic
#152662 #1F3A94 #2A4EC7 #5372DB #869CE5

Accessibility & contrast

On white

6.97
#2A4EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2A4EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A4EC7
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EC7#FFFFFF#000000##FFFFFF
##2A4EC71.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a4ec7;
/* rgb */ color: rgb(42, 78, 199);
/* oklch */ color: oklch(47.7% 0.193 266.2);
Tailwind
colors: {
  custom: {
    50: '#7d7fd9',
    500: '#2a4ec7',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ec7;
$custom-light: #7d7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ec7",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 199
  },
  "hsl": {
    "h": 226.242,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47702,
    "c": 0.19265,
    "h": 266.2
  },
  "luminance": 0.10065
}

Semantic roles & 50–950 ramp

primary
#2A4EC7
secondary
#CFBC7E
accent
#C140E8
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #2A4EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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