#2A4EBD#2A4EBD

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

Color values

HEX#2A4EBD
RGBrgb(42, 78, 189)
HSLhsl(225, 64%, 45%)
HSVhsv(225, 78%, 74%)
CMYKcmyk(77.8%, 58.7%, 0%, 25.9%)
CIE-LABlab(37.14, 27.64, -61.97)
CIE-LCHlch(37.14, 67.86, 294.04°)
OKLaboklab(46.84% -0.0129 -0.179)
OKLCHoklch(46.84% 0.179 265.9)
XYZxyz(12.8613, 9.6137, 49.3120)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EBD #BD992A
analogous
#2A97BD #2A4EBD #4F2ABD
triadic
#2A4EBD #BD2A4E #4EBD2A
tetradic
#2A4EBD #BD2A97 #BD992A #2ABD4F
square
#2A4EBD #BD2A97 #BD992A #2ABD4F
split-complementary
#2A4EBD #BD4F2A #97BD2A
monochromatic
#142559 #1F398B #2A4EBD #4D6FD7 #7F97E3

Accessibility & contrast

On white

7.18
#2A4EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2A4EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EBD
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EBD#FFFFFF#000000##FFFFFF
##2A4EBD1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a4ebd;
/* rgb */ color: rgb(42, 78, 189);
/* oklch */ color: oklch(46.8% 0.179 265.9);
Tailwind
colors: {
  custom: {
    50: '#7b7fd2',
    500: '#2a4ebd',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ebd;
$custom-light: #7b7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ebd",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 225.306,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4684,
    "c": 0.17947,
    "h": 265.9
  },
  "luminance": 0.09615
}

Semantic roles & 50–950 ramp

primary
#2A4EBD
secondary
#CBB778
accent
#BE41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A4EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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