#2A4EAB#2A4EAB

#2A4EAB is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.155 H 264.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2A4EAB
RGBrgb(42, 78, 171)
HSLhsl(223, 61%, 42%)
HSVhsv(223, 75%, 67%)
CMYKcmyk(75.4%, 54.4%, 0%, 32.9%)
CIE-LABlab(35.75, 20.79, -53.60)
CIE-LCHlch(35.75, 57.49, 291.20°)
OKLaboklab(45.36% -0.0139 -0.1544)
OKLCHoklch(45.36% 0.155 264.9)
XYZxyz(11.0273, 8.8801, 39.6530)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EAB #AB872A
analogous
#2A8FAB #2A4EAB #472AAB
triadic
#2A4EAB #AB2A4E #4EAB2A
tetradic
#2A4EAB #AB2A8F #AB872A #2AAB47
square
#2A4EAB #AB2A8F #AB872A #2AAB47
split-complementary
#2A4EAB #AB472A #8FAB2A
monochromatic
#122149 #1E387A #2A4EAB #426AD1 #7390DD

Accessibility & contrast

On white

7.56
#2A4EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A4EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EAB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EAB#FFFFFF#000000##FFFFFF
##2A4EAB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015AAE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4eab;
/* rgb */ color: rgb(42, 78, 171);
/* oklch */ color: oklch(45.4% 0.155 264.9);
Tailwind
colors: {
  custom: {
    50: '#767fc5',
    500: '#2a4eab',
    950: '#000000',
  },
}
SCSS
$custom: #2a4eab;
$custom-light: #767fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4eab",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 223.256,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45361,
    "c": 0.15503,
    "h": 264.9
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#2A4EAB
secondary
#C4AC6D
accent
#B744E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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