#2A4CBA#2A4CBA

#2A4CBA is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.178 H 266.2°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#2A4CBA
RGBrgb(42, 76, 186)
HSLhsl(226, 63%, 45%)
HSVhsv(226, 77%, 73%)
CMYKcmyk(77.4%, 59.1%, 0%, 27.1%)
CIE-LABlab(36.38, 27.83, -61.45)
CIE-LCHlch(36.38, 67.46, 294.36°)
OKLaboklab(46.19% -0.0116 -0.1775)
OKLCHoklch(46.19% 0.178 266.2)
XYZxyz(12.3991, 9.2049, 47.5681)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4CBA #BA982A
analogous
#2A94BA #2A4CBA #502ABA
triadic
#2A4CBA #BA2A4C #4CBA2A
tetradic
#2A4CBA #BA2A94 #BA982A #2ABA50
square
#2A4CBA #BA2A94 #BA982A #2ABA50
split-complementary
#2A4CBA #BA502A #94BA2A
monochromatic
#132356 #1F3888 #2A4CBA #4B6CD6 #7D95E2

Accessibility & contrast

On white

7.39
#2A4CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2A4CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4CBA
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4CBA#FFFFFF#000000##FFFFFF
##2A4CBA1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a4cba;
/* rgb */ color: rgb(42, 76, 186);
/* oklch */ color: oklch(46.2% 0.178 266.2);
Tailwind
colors: {
  custom: {
    50: '#7a7dd0',
    500: '#2a4cba',
    950: '#000000',
  },
}
SCSS
$custom: #2a4cba;
$custom-light: #7a7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4cba",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 225.833,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46194,
    "c": 0.17791,
    "h": 266.2
  },
  "luminance": 0.09206
}

Semantic roles & 50–950 ramp

primary
#2A4CBA
secondary
#CAB676
accent
#BF42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A4CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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