#2A4AB1#2A4AB1

#2A4AB1 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.168 H 266.4°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2A4AB1
RGBrgb(42, 74, 177)
HSLhsl(226, 62%, 43%)
HSVhsv(226, 76%, 69%)
CMYKcmyk(76.3%, 58.2%, 0%, 30.6%)
CIE-LABlab(35.13, 25.74, -58.17)
CIE-LCHlch(35.13, 63.61, 293.87°)
OKLaboklab(45.04% -0.0105 -0.1679)
OKLCHoklch(45.04% 0.168 266.4)
XYZxyz(11.3367, 8.5629, 42.6418)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AB1 #B1912A
analogous
#2A8DB1 #2A4AB1 #4E2AB1
triadic
#2A4AB1 #B12A4A #4AB12A
tetradic
#2A4AB1 #B12A8D #B1912A #2AB14E
square
#2A4AB1 #B12A8D #B1912A #2AB14E
split-complementary
#2A4AB1 #B14E2A #8DB12A
monochromatic
#13214E #1E3580 #2A4AB1 #4567D3 #778FDF

Accessibility & contrast

On white

7.74
#2A4AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A4AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AB1
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AB1#FFFFFF#000000##FFFFFF
##2A4AB11.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4ab1;
/* rgb */ color: rgb(42, 74, 177);
/* oklch */ color: oklch(45.0% 0.168 266.4);
Tailwind
colors: {
  custom: {
    50: '#787cc9',
    500: '#2a4ab1',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ab1;
$custom-light: #787cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ab1",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 177
  },
  "hsl": {
    "h": 225.778,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.16825,
    "h": 266.4
  },
  "luminance": 0.08564
}

Semantic roles & 50–950 ramp

primary
#2A4AB1
secondary
#C6B270
accent
#BE43E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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