#2A4EBA#2A4EBA

#2A4EBA is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.175 H 265.8°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#2A4EBA
RGBrgb(42, 78, 186)
HSLhsl(225, 63%, 45%)
HSVhsv(225, 77%, 73%)
CMYKcmyk(77.4%, 58.1%, 0%, 27.1%)
CIE-LABlab(36.90, 26.51, -60.60)
CIE-LCHlch(36.90, 66.14, 293.63°)
OKLaboklab(46.59% -0.013 -0.175)
OKLCHoklch(46.59% 0.175 265.8)
XYZxyz(12.5390, 9.4848, 47.6147)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EBA #BA962A
analogous
#2A96BA #2A4EBA #4E2ABA
triadic
#2A4EBA #BA2A4E #4EBA2A
tetradic
#2A4EBA #BA2A96 #BA962A #2ABA4E
square
#2A4EBA #BA2A96 #BA962A #2ABA4E
split-complementary
#2A4EBA #BA4E2A #96BA2A
monochromatic
#132456 #1F3988 #2A4EBA #4B6ED6 #7D96E2

Accessibility & contrast

On white

7.25
#2A4EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2A4EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EBA
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EBA#FFFFFF#000000##FFFFFF
##2A4EBA1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a4eba;
/* rgb */ color: rgb(42, 78, 186);
/* oklch */ color: oklch(46.6% 0.175 265.8);
Tailwind
colors: {
  custom: {
    50: '#7a7fd0',
    500: '#2a4eba',
    950: '#000000',
  },
}
SCSS
$custom: #2a4eba;
$custom-light: #7a7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4eba",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 225,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46587,
    "c": 0.17546,
    "h": 265.8
  },
  "luminance": 0.09486
}

Semantic roles & 50–950 ramp

primary
#2A4EBA
secondary
#CAB576
accent
#BD42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A4EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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