#2A4DBA#2A4DBA

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

Color values

HEX#2A4DBA
RGBrgb(42, 77, 186)
HSLhsl(225, 63%, 45%)
HSVhsv(225, 77%, 73%)
CMYKcmyk(77.4%, 58.6%, 0%, 27.1%)
CIE-LABlab(36.64, 27.17, -61.03)
CIE-LCHlch(36.64, 66.80, 294.00°)
OKLaboklab(46.39% -0.0123 -0.1763)
OKLCHoklch(46.39% 0.177 266)
XYZxyz(12.4685, 9.3438, 47.5912)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DBA #BA972A
analogous
#2A95BA #2A4DBA #4F2ABA
triadic
#2A4DBA #BA2A4D #4DBA2A
tetradic
#2A4DBA #BA2A95 #BA972A #2ABA4F
square
#2A4DBA #BA2A95 #BA972A #2ABA4F
split-complementary
#2A4DBA #BA4F2A #95BA2A
monochromatic
#132456 #1F3888 #2A4DBA #4B6DD6 #7D95E2

Accessibility & contrast

On white

7.32
#2A4DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2A4DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DBA
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DBA#FFFFFF#000000##FFFFFF
##2A4DBA1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a4dba;
/* rgb */ color: rgb(42, 77, 186);
/* oklch */ color: oklch(46.4% 0.177 266.0);
Tailwind
colors: {
  custom: {
    50: '#7a7ed0',
    500: '#2a4dba',
    950: '#000000',
  },
}
SCSS
$custom: #2a4dba;
$custom-light: #7a7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4dba",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 225.417,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4639,
    "c": 0.17669,
    "h": 266
  },
  "luminance": 0.09345
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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