#2A4EA4#2A4EA4

#2A4EA4 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.8% C 0.145 H 264.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2A4EA4
RGBrgb(42, 78, 164)
HSLhsl(222, 59%, 40%)
HSVhsv(222, 74%, 64%)
CMYKcmyk(74.4%, 52.4%, 0%, 35.7%)
CIE-LABlab(35.24, 18.10, -50.24)
CIE-LCHlch(35.24, 53.41, 289.82°)
OKLaboklab(44.81% -0.0146 -0.1445)
OKLCHoklch(44.81% 0.145 264.2)
XYZxyz(10.3777, 8.6202, 36.2317)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EA4 #A4802A
analogous
#2A8BA4 #2A4EA4 #432AA4
triadic
#2A4EA4 #A42A4E #4EA42A
tetradic
#2A4EA4 #A42A8B #A4802A #2AA443
square
#2A4EA4 #A42A8B #A4802A #2AA443
split-complementary
#2A4EA4 #A4432A #8BA42A
monochromatic
#112043 #1E3773 #2A4EA4 #3E68CD #6E8EDA

Accessibility & contrast

On white

7.71
#2A4EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2A4EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EA4
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EA4#FFFFFF#000000##FFFFFF
##2A4EA41.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1559A7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4ea4;
/* rgb */ color: rgb(42, 78, 164);
/* oklch */ color: oklch(44.8% 0.145 264.2);
Tailwind
colors: {
  custom: {
    50: '#757fc0',
    500: '#2a4ea4',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ea4;
$custom-light: #757fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ea4",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 222.295,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44812,
    "c": 0.14527,
    "h": 264.2
  },
  "luminance": 0.08621
}

Semantic roles & 50–950 ramp

primary
#2A4EA4
secondary
#C1A769
accent
#B445E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A4EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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