#2A4EBC#2A4EBC

#2A4EBC is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.178 H 265.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2A4EBC
RGBrgb(42, 78, 188)
HSLhsl(225, 63%, 45%)
HSVhsv(225, 78%, 74%)
CMYKcmyk(77.7%, 58.5%, 0%, 26.3%)
CIE-LABlab(37.06, 27.27, -61.51)
CIE-LCHlch(37.06, 67.28, 293.91°)
OKLaboklab(46.76% -0.0129 -0.1777)
OKLCHoklch(46.76% 0.178 265.8)
XYZxyz(12.7531, 9.5704, 48.7423)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EBC #BC982A
analogous
#2A97BC #2A4EBC #4F2ABC
triadic
#2A4EBC #BC2A4E #4EBC2A
tetradic
#2A4EBC #BC2A97 #BC982A #2ABC4F
square
#2A4EBC #BC2A97 #BC982A #2ABC4F
split-complementary
#2A4EBC #BC4F2A #97BC2A
monochromatic
#142458 #1F398A #2A4EBC #4C6ED7 #7E97E2

Accessibility & contrast

On white

7.21
#2A4EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2A4EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EBC
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EBC#FFFFFF#000000##FFFFFF
##2A4EBC1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a4ebc;
/* rgb */ color: rgb(42, 78, 188);
/* oklch */ color: oklch(46.8% 0.178 265.8);
Tailwind
colors: {
  custom: {
    50: '#7a7fd1',
    500: '#2a4ebc',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ebc;
$custom-light: #7a7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ebc",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 188
  },
  "hsl": {
    "h": 225.205,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46756,
    "c": 0.17814,
    "h": 265.8
  },
  "luminance": 0.09572
}

Semantic roles & 50–950 ramp

primary
#2A4EBC
secondary
#CBB677
accent
#BE41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A4EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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