#2A4EA8#2A4EA8

#2A4EA8 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.151 H 264.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#2A4EA8
RGBrgb(42, 78, 168)
HSLhsl(223, 60%, 41%)
HSVhsv(223, 75%, 66%)
CMYKcmyk(75%, 53.6%, 0%, 34.1%)
CIE-LABlab(35.53, 19.64, -52.17)
CIE-LCHlch(35.53, 55.74, 290.63°)
OKLaboklab(45.12% -0.0142 -0.1502)
OKLCHoklch(45.12% 0.151 264.6)
XYZxyz(10.7446, 8.7670, 38.1641)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EA8 #A8842A
analogous
#2A8DA8 #2A4EA8 #452AA8
triadic
#2A4EA8 #A82A4E #4EA82A
tetradic
#2A4EA8 #A82A8D #A8842A #2AA845
square
#2A4EA8 #A82A8D #A8842A #2AA845
split-complementary
#2A4EA8 #A8452A #8DA82A
monochromatic
#122146 #1E3777 #2A4EA8 #4069CF #718FDB

Accessibility & contrast

On white

7.63
#2A4EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2A4EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EA8
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EA8#FFFFFF#000000##FFFFFF
##2A4EA81.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5AAB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4ea8;
/* rgb */ color: rgb(42, 78, 168);
/* oklch */ color: oklch(45.1% 0.151 264.6);
Tailwind
colors: {
  custom: {
    50: '#767fc2',
    500: '#2a4ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ea8;
$custom-light: #767fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ea8",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 222.857,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45124,
    "c": 0.15087,
    "h": 264.6
  },
  "luminance": 0.08768
}

Semantic roles & 50–950 ramp

primary
#2A4EA8
secondary
#C3AA6B
accent
#B645E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2A4EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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