#2A4EB9#2A4EB9

#2A4EB9 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.174 H 265.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2A4EB9
RGBrgb(42, 78, 185)
HSLhsl(225, 63%, 45%)
HSVhsv(225, 77%, 73%)
CMYKcmyk(77.3%, 57.8%, 0%, 27.5%)
CIE-LABlab(36.82, 26.13, -60.14)
CIE-LCHlch(36.82, 65.57, 293.49°)
OKLaboklab(46.5% -0.013 -0.1736)
OKLCHoklch(46.5% 0.174 265.7)
XYZxyz(12.4331, 9.4424, 47.0568)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EB9 #B9952A
analogous
#2A96B9 #2A4EB9 #4D2AB9
triadic
#2A4EB9 #B92A4E #4EB92A
tetradic
#2A4EB9 #B92A96 #B9952A #2AB94D
square
#2A4EB9 #B92A96 #B9952A #2AB94D
split-complementary
#2A4EB9 #B94D2A #96B92A
monochromatic
#132455 #1F3987 #2A4EB9 #4A6DD6 #7C96E1

Accessibility & contrast

On white

7.27
#2A4EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A4EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EB9
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EB9#FFFFFF#000000##FFFFFF
##2A4EB91.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4eb9;
/* rgb */ color: rgb(42, 78, 185);
/* oklch */ color: oklch(46.5% 0.174 265.7);
Tailwind
colors: {
  custom: {
    50: '#7a7fcf',
    500: '#2a4eb9',
    950: '#000000',
  },
}
SCSS
$custom: #2a4eb9;
$custom-light: #7a7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4eb9",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 224.895,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46503,
    "c": 0.17412,
    "h": 265.7
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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