#2A4AB4#2A4AB4

#2A4AB4 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.172 H 266.5°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#2A4AB4
RGBrgb(42, 74, 180)
HSLhsl(226, 62%, 44%)
HSVhsv(226, 77%, 71%)
CMYKcmyk(76.7%, 58.9%, 0%, 29.4%)
CIE-LABlab(35.37, 26.88, -59.56)
CIE-LCHlch(35.37, 65.34, 294.29°)
OKLaboklab(45.29% -0.0104 -0.172)
OKLCHoklch(45.29% 0.172 266.5)
XYZxyz(11.6390, 8.6838, 44.2339)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AB4 #B4942A
analogous
#2A8FB4 #2A4AB4 #4F2AB4
triadic
#2A4AB4 #B42A4A #4AB42A
tetradic
#2A4AB4 #B42A8F #B4942A #2AB44F
square
#2A4AB4 #B42A8F #B4942A #2AB44F
split-complementary
#2A4AB4 #B44F2A #8FB42A
monochromatic
#132151 #1E3682 #2A4AB4 #4768D4 #7991E0

Accessibility & contrast

On white

7.67
#2A4AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2A4AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AB4
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AB4#FFFFFF#000000##FFFFFF
##2A4AB41.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4ab4;
/* rgb */ color: rgb(42, 74, 180);
/* oklch */ color: oklch(45.3% 0.172 266.5);
Tailwind
colors: {
  custom: {
    50: '#797ccb',
    500: '#2a4ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ab4;
$custom-light: #797ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ab4",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 226.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4529,
    "c": 0.17231,
    "h": 266.5
  },
  "luminance": 0.08685
}

Semantic roles & 50–950 ramp

primary
#2A4AB4
secondary
#C8B472
accent
#C043E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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