#2A4AB9#2A4AB9

#2A4AB9 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.179 H 266.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2A4AB9
RGBrgb(42, 74, 185)
HSLhsl(227, 63%, 45%)
HSVhsv(227, 77%, 73%)
CMYKcmyk(77.3%, 60%, 0%, 27.5%)
CIE-LABlab(35.77, 28.76, -61.85)
CIE-LCHlch(35.77, 68.21, 294.94°)
OKLaboklab(45.72% -0.0103 -0.1787)
OKLCHoklch(45.72% 0.179 266.7)
XYZxyz(12.1575, 8.8912, 46.9650)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AB9 #B9992A
analogous
#2A92B9 #2A4AB9 #512AB9
triadic
#2A4AB9 #B92A4A #4AB92A
tetradic
#2A4AB9 #B92A92 #B9992A #2AB951
square
#2A4AB9 #B92A92 #B9992A #2AB951
split-complementary
#2A4AB9 #B9512A #92B92A
monochromatic
#132255 #1F3687 #2A4AB9 #4A6AD6 #7C93E1

Accessibility & contrast

On white

7.56
#2A4AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A4AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AB9
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AB9#FFFFFF#000000##FFFFFF
##2A4AB91.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4ab9;
/* rgb */ color: rgb(42, 74, 185);
/* oklch */ color: oklch(45.7% 0.179 266.7);
Tailwind
colors: {
  custom: {
    50: '#7a7ccf',
    500: '#2a4ab9',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ab9;
$custom-light: #7a7ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ab9",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 185
  },
  "hsl": {
    "h": 226.573,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45719,
    "c": 0.17901,
    "h": 266.7
  },
  "luminance": 0.08893
}

Semantic roles & 50–950 ramp

primary
#2A4AB9
secondary
#CAB775
accent
#C142E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A4AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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