#2A4FBD#2A4FBD

#2A4FBD is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.178 H 265.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2A4FBD
RGBrgb(42, 79, 189)
HSLhsl(225, 64%, 45%)
HSVhsv(225, 78%, 74%)
CMYKcmyk(77.8%, 58.2%, 0%, 25.9%)
CIE-LABlab(37.40, 26.99, -61.54)
CIE-LCHlch(37.40, 67.20, 293.68°)
OKLaboklab(47.04% -0.0135 -0.1777)
OKLCHoklch(47.04% 0.178 265.6)
XYZxyz(12.9329, 9.7569, 49.3359)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FBD #BD982A
analogous
#2A98BD #2A4FBD #4F2ABD
triadic
#2A4FBD #BD2A4F #4FBD2A
tetradic
#2A4FBD #BD2A98 #BD982A #2ABD4F
square
#2A4FBD #BD2A98 #BD982A #2ABD4F
split-complementary
#2A4FBD #BD4F2A #98BD2A
monochromatic
#142559 #1F3A8B #2A4FBD #4D70D7 #7F98E3

Accessibility & contrast

On white

7.11
#2A4FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2A4FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FBD
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FBD#FFFFFF#000000##FFFFFF
##2A4FBD1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a4fbd;
/* rgb */ color: rgb(42, 79, 189);
/* oklch */ color: oklch(47.0% 0.178 265.6);
Tailwind
colors: {
  custom: {
    50: '#7a7fd2',
    500: '#2a4fbd',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fbd;
$custom-light: #7a7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fbd",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 189
  },
  "hsl": {
    "h": 224.898,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.17826,
    "h": 265.6
  },
  "luminance": 0.09758
}

Semantic roles & 50–950 ramp

primary
#2A4FBD
secondary
#CBB678
accent
#BD41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A4FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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