#2A4AB5#2A4AB5

#2A4AB5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.174 H 266.6°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2A4AB5
RGBrgb(42, 74, 181)
HSLhsl(226, 62%, 44%)
HSVhsv(226, 77%, 71%)
CMYKcmyk(76.8%, 59.1%, 0%, 29%)
CIE-LABlab(35.45, 27.25, -60.02)
CIE-LCHlch(35.45, 65.92, 294.42°)
OKLaboklab(45.38% -0.0104 -0.1733)
OKLCHoklch(45.38% 0.174 266.6)
XYZxyz(11.7412, 8.7247, 44.7723)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AB5 #B5952A
analogous
#2A8FB5 #2A4AB5 #4F2AB5
triadic
#2A4AB5 #B52A4A #4AB52A
tetradic
#2A4AB5 #B52A8F #B5952A #2AB54F
square
#2A4AB5 #B52A8F #B5952A #2AB54F
split-complementary
#2A4AB5 #B54F2A #8FB52A
monochromatic
#132152 #1E3683 #2A4AB5 #4868D4 #7991E0

Accessibility & contrast

On white

7.65
#2A4AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4AB5
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AB5#FFFFFF#000000##FFFFFF
##2A4AB51.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4ab5;
/* rgb */ color: rgb(42, 74, 181);
/* oklch */ color: oklch(45.4% 0.174 266.6);
Tailwind
colors: {
  custom: {
    50: '#797ccc',
    500: '#2a4ab5',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ab5;
$custom-light: #797ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ab5",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 226.187,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45375,
    "c": 0.17365,
    "h": 266.6
  },
  "luminance": 0.08726
}

Semantic roles & 50–950 ramp

primary
#2A4AB5
secondary
#C8B473
accent
#C042E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2A4AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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