#2A4FBB#2A4FBB

#2A4FBB is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.176 H 265.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2A4FBB
RGBrgb(42, 79, 187)
HSLhsl(225, 63%, 45%)
HSVhsv(225, 78%, 73%)
CMYKcmyk(77.5%, 57.8%, 0%, 26.7%)
CIE-LABlab(37.24, 26.23, -60.63)
CIE-LCHlch(37.24, 66.06, 293.40°)
OKLaboklab(46.87% -0.0136 -0.175)
OKLCHoklch(46.87% 0.176 265.5)
XYZxyz(12.7173, 9.6706, 48.2004)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FBB #BB962A
analogous
#2A97BB #2A4FBB #4E2ABB
triadic
#2A4FBB #BB2A4F #4FBB2A
tetradic
#2A4FBB #BB2A97 #BB962A #2ABB4E
square
#2A4FBB #BB2A97 #BB962A #2ABB4E
split-complementary
#2A4FBB #BB4E2A #97BB2A
monochromatic
#142557 #1F3A89 #2A4FBB #4C6FD7 #7D97E2

Accessibility & contrast

On white

7.16
#2A4FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2A4FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FBB
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FBB#FFFFFF#000000##FFFFFF
##2A4FBB1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a4fbb;
/* rgb */ color: rgb(42, 79, 187);
/* oklch */ color: oklch(46.9% 0.176 265.5);
Tailwind
colors: {
  custom: {
    50: '#7a7fd0',
    500: '#2a4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fbb;
$custom-light: #7a7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fbb",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 224.69,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46869,
    "c": 0.17558,
    "h": 265.5
  },
  "luminance": 0.09672
}

Semantic roles & 50–950 ramp

primary
#2A4FBB
secondary
#CAB576
accent
#BC41E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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