#2A4FB7#2A4FB7

#2A4FB7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.170 H 265.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2A4FB7
RGBrgb(42, 79, 183)
HSLhsl(224, 63%, 44%)
HSVhsv(224, 77%, 72%)
CMYKcmyk(77%, 56.8%, 0%, 28.2%)
CIE-LABlab(36.93, 24.71, -58.78)
CIE-LCHlch(36.93, 63.77, 292.80°)
OKLaboklab(46.54% -0.0138 -0.1696)
OKLCHoklch(46.54% 0.17 265.3)
XYZxyz(12.2951, 9.5017, 45.9766)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FB7 #B7922A
analogous
#2A96B7 #2A4FB7 #4B2AB7
triadic
#2A4FB7 #B72A4F #4FB72A
tetradic
#2A4FB7 #B72A96 #B7922A #2AB74B
square
#2A4FB7 #B72A96 #B7922A #2AB74B
split-complementary
#2A4FB7 #B74B2A #96B72A
monochromatic
#132453 #1F3A85 #2A4FB7 #496ED5 #7B95E1

Accessibility & contrast

On white

7.24
#2A4FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2A4FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FB7
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FB7#FFFFFF#000000##FFFFFF
##2A4FB71.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a4fb7;
/* rgb */ color: rgb(42, 79, 183);
/* oklch */ color: oklch(46.5% 0.170 265.3);
Tailwind
colors: {
  custom: {
    50: '#797fcd',
    500: '#2a4fb7',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fb7;
$custom-light: #797fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fb7",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 224.255,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46537,
    "c": 0.17019,
    "h": 265.3
  },
  "luminance": 0.09503
}

Semantic roles & 50–950 ramp

primary
#2A4FB7
secondary
#C9B374
accent
#BB42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A4FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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