#2A4FB5#2A4FB5

#2A4FB5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.167 H 265.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2A4FB5
RGBrgb(42, 79, 181)
HSLhsl(224, 62%, 44%)
HSVhsv(224, 77%, 71%)
CMYKcmyk(76.8%, 56.4%, 0%, 29%)
CIE-LABlab(36.78, 23.95, -57.85)
CIE-LCHlch(36.78, 62.62, 292.49°)
OKLaboklab(46.37% -0.0139 -0.1669)
OKLCHoklch(46.37% 0.167 265.2)
XYZxyz(12.0884, 9.4190, 44.8881)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FB5 #B5902A
analogous
#2A94B5 #2A4FB5 #4A2AB5
triadic
#2A4FB5 #B52A4F #4FB52A
tetradic
#2A4FB5 #B52A94 #B5902A #2AB54A
square
#2A4FB5 #B52A94 #B5902A #2AB54A
split-complementary
#2A4FB5 #B54A2A #94B52A
monochromatic
#132452 #1E3983 #2A4FB5 #486DD4 #7995E0

Accessibility & contrast

On white

7.28
#2A4FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2A4FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FB5
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FB5#FFFFFF#000000##FFFFFF
##2A4FB51.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a4fb5;
/* rgb */ color: rgb(42, 79, 181);
/* oklch */ color: oklch(46.4% 0.167 265.2);
Tailwind
colors: {
  custom: {
    50: '#797fcc',
    500: '#2a4fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fb5;
$custom-light: #797fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fb5",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 224.029,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46373,
    "c": 0.16748,
    "h": 265.2
  },
  "luminance": 0.0942
}

Semantic roles & 50–950 ramp

primary
#2A4FB5
secondary
#C8B173
accent
#BA42E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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