#2A4FB9#2A4FB9

#2A4FB9 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.173 H 265.4°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2A4FB9
RGBrgb(42, 79, 185)
HSLhsl(224, 63%, 45%)
HSVhsv(224, 77%, 73%)
CMYKcmyk(77.3%, 57.3%, 0%, 27.5%)
CIE-LABlab(37.09, 25.47, -59.71)
CIE-LCHlch(37.09, 64.91, 293.11°)
OKLaboklab(46.7% -0.0137 -0.1723)
OKLCHoklch(46.7% 0.173 265.4)
XYZxyz(12.5047, 9.5856, 47.0807)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FB9 #B9942A
analogous
#2A96B9 #2A4FB9 #4D2AB9
triadic
#2A4FB9 #B92A4F #4FB92A
tetradic
#2A4FB9 #B92A96 #B9942A #2AB94D
square
#2A4FB9 #B92A96 #B9942A #2AB94D
split-complementary
#2A4FB9 #B94D2A #96B92A
monochromatic
#132455 #1F3A87 #2A4FB9 #4A6ED6 #7C96E1

Accessibility & contrast

On white

7.20
#2A4FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2A4FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FB9
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FB9#FFFFFF#000000##FFFFFF
##2A4FB91.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a4fb9;
/* rgb */ color: rgb(42, 79, 185);
/* oklch */ color: oklch(46.7% 0.173 265.4);
Tailwind
colors: {
  custom: {
    50: '#7a7fcf',
    500: '#2a4fb9',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fb9;
$custom-light: #7a7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fb9",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 185
  },
  "hsl": {
    "h": 224.476,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46703,
    "c": 0.1729,
    "h": 265.4
  },
  "luminance": 0.09587
}

Semantic roles & 50–950 ramp

primary
#2A4FB9
secondary
#CAB475
accent
#BC42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A4FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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