#2A4EC6#2A4EC6

#2A4EC6 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.191 H 266.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#2A4EC6
RGBrgb(42, 78, 198)
HSLhsl(226, 65%, 47%)
HSVhsv(226, 79%, 78%)
CMYKcmyk(78.8%, 60.6%, 0%, 22.4%)
CIE-LABlab(37.87, 31.02, -66.03)
CIE-LCHlch(37.87, 72.95, 295.17°)
OKLaboklab(47.61% -0.0127 -0.1909)
OKLCHoklch(47.61% 0.191 266.2)
XYZxyz(13.8687, 10.0166, 54.6176)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EC6 #C6A22A
analogous
#2A9CC6 #2A4EC6 #542AC6
triadic
#2A4EC6 #C62A4E #4EC62A
tetradic
#2A4EC6 #C62A9C #C6A22A #2AC654
square
#2A4EC6 #C62A9C #C6A22A #2AC654
split-complementary
#2A4EC6 #C6542A #9CC62A
monochromatic
#152661 #1F3A94 #2A4EC6 #5372DA #859BE5

Accessibility & contrast

On white

6.99
#2A4EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#2A4EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A4EC6
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EC6#FFFFFF#000000##FFFFFF
##2A4EC61.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0052C4
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a4ec6;
/* rgb */ color: rgb(42, 78, 198);
/* oklch */ color: oklch(47.6% 0.191 266.2);
Tailwind
colors: {
  custom: {
    50: '#7d7fd8',
    500: '#2a4ec6',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ec6;
$custom-light: #7d7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ec6",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 198
  },
  "hsl": {
    "h": 226.154,
    "s": 65,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47614,
    "c": 0.19134,
    "h": 266.2
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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