#2A4DAB#2A4DAB

#2A4DAB is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.156 H 265.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#2A4DAB
RGBrgb(42, 77, 171)
HSLhsl(224, 61%, 42%)
HSVhsv(224, 75%, 67%)
CMYKcmyk(75.4%, 55%, 0%, 32.9%)
CIE-LABlab(35.48, 21.46, -54.04)
CIE-LCHlch(35.48, 58.15, 291.66°)
OKLaboklab(45.15% -0.0131 -0.1557)
OKLCHoklch(45.15% 0.156 265.2)
XYZxyz(10.9568, 8.7391, 39.6295)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DAB #AB882A
analogous
#2A8EAB #2A4DAB #482AAB
triadic
#2A4DAB #AB2A4D #4DAB2A
tetradic
#2A4DAB #AB2A8E #AB882A #2AAB48
square
#2A4DAB #AB2A8E #AB882A #2AAB48
split-complementary
#2A4DAB #AB482A #8EAB2A
monochromatic
#122149 #1E377A #2A4DAB #4268D1 #7390DD

Accessibility & contrast

On white

7.64
#2A4DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2A4DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DAB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DAB#FFFFFF#000000##FFFFFF
##2A4DAB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4dab;
/* rgb */ color: rgb(42, 77, 171);
/* oklch */ color: oklch(45.2% 0.156 265.2);
Tailwind
colors: {
  custom: {
    50: '#767ec5',
    500: '#2a4dab',
    950: '#000000',
  },
}
SCSS
$custom: #2a4dab;
$custom-light: #767ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4dab",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 171
  },
  "hsl": {
    "h": 223.721,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45152,
    "c": 0.15628,
    "h": 265.2
  },
  "luminance": 0.0874
}

Semantic roles & 50–950 ramp

primary
#2A4DAB
secondary
#C4AC6D
accent
#B844E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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