#2A4DB9#2A4DB9

#2A4DB9 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.3% C 0.175 H 266.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#2A4DB9
RGBrgb(42, 77, 185)
HSLhsl(225, 63%, 45%)
HSVhsv(225, 77%, 73%)
CMYKcmyk(77.3%, 58.4%, 0%, 27.5%)
CIE-LABlab(36.56, 26.79, -60.57)
CIE-LCHlch(36.56, 66.23, 293.86°)
OKLaboklab(46.31% -0.0123 -0.1749)
OKLCHoklch(46.31% 0.175 266)
XYZxyz(12.3626, 9.3014, 47.0333)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DB9 #B9962A
analogous
#2A95B9 #2A4DB9 #4F2AB9
triadic
#2A4DB9 #B92A4D #4DB92A
tetradic
#2A4DB9 #B92A95 #B9962A #2AB94F
square
#2A4DB9 #B92A95 #B9962A #2AB94F
split-complementary
#2A4DB9 #B94F2A #95B92A
monochromatic
#132355 #1F3887 #2A4DB9 #4A6CD6 #7C95E1

Accessibility & contrast

On white

7.34
#2A4DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2A4DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DB9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DB9#FFFFFF#000000##FFFFFF
##2A4DB91.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a4db9;
/* rgb */ color: rgb(42, 77, 185);
/* oklch */ color: oklch(46.3% 0.175 266.0);
Tailwind
colors: {
  custom: {
    50: '#7a7ecf',
    500: '#2a4db9',
    950: '#000000',
  },
}
SCSS
$custom: #2a4db9;
$custom-light: #7a7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4db9",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 185
  },
  "hsl": {
    "h": 225.315,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46305,
    "c": 0.17535,
    "h": 266
  },
  "luminance": 0.09303
}

Semantic roles & 50–950 ramp

primary
#2A4DB9
secondary
#CAB575
accent
#BE42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A4DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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