#2A4AB6#2A4AB6

#2A4AB6 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.175 H 266.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#2A4AB6
RGBrgb(42, 74, 182)
HSLhsl(226, 63%, 44%)
HSVhsv(226, 77%, 71%)
CMYKcmyk(76.9%, 59.3%, 0%, 28.6%)
CIE-LABlab(35.53, 27.63, -60.48)
CIE-LCHlch(35.53, 66.49, 294.56°)
OKLaboklab(45.46% -0.0104 -0.1747)
OKLCHoklch(45.46% 0.175 266.6)
XYZxyz(11.8442, 8.7659, 45.3147)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AB6 #B6962A
analogous
#2A90B6 #2A4AB6 #502AB6
triadic
#2A4AB6 #B62A4A #4AB62A
tetradic
#2A4AB6 #B62A90 #B6962A #2AB650
square
#2A4AB6 #B62A90 #B6962A #2AB650
split-complementary
#2A4AB6 #B6502A #90B62A
monochromatic
#132253 #1F3684 #2A4AB6 #4868D5 #7A91E0

Accessibility & contrast

On white

7.63
#2A4AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2A4AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AB6
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AB6#FFFFFF#000000##FFFFFF
##2A4AB61.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABA
Deuteranopia (green-blind)
#004DB4
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4ab6;
/* rgb */ color: rgb(42, 74, 182);
/* oklch */ color: oklch(45.5% 0.175 266.6);
Tailwind
colors: {
  custom: {
    50: '#797ccd',
    500: '#2a4ab6',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ab6;
$custom-light: #797ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ab6",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 182
  },
  "hsl": {
    "h": 226.286,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45461,
    "c": 0.175,
    "h": 266.6
  },
  "luminance": 0.08767
}

Semantic roles & 50–950 ramp

primary
#2A4AB6
secondary
#C8B573
accent
#C042E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A4AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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