#2A4ABB#2A4ABB

#2A4ABB is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.182 H 266.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2A4ABB
RGBrgb(42, 74, 187)
HSLhsl(227, 63%, 45%)
HSVhsv(227, 78%, 73%)
CMYKcmyk(77.5%, 60.4%, 0%, 26.7%)
CIE-LABlab(35.94, 29.51, -62.76)
CIE-LCHlch(35.94, 69.35, 295.19°)
OKLaboklab(45.89% -0.0103 -0.1814)
OKLCHoklch(45.89% 0.182 266.7)
XYZxyz(12.3701, 8.9763, 48.0847)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4ABB #BB9B2A
analogous
#2A92BB #2A4ABB #532ABB
triadic
#2A4ABB #BB2A4A #4ABB2A
tetradic
#2A4ABB #BB2A92 #BB9B2A #2ABB53
square
#2A4ABB #BB2A92 #BB9B2A #2ABB53
split-complementary
#2A4ABB #BB532A #92BB2A
monochromatic
#142257 #1F3689 #2A4ABB #4C6AD7 #7D94E2

Accessibility & contrast

On white

7.51
#2A4ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A4ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4ABB
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4ABB#FFFFFF#000000##FFFFFF
##2A4ABB1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4abb;
/* rgb */ color: rgb(42, 74, 187);
/* oklch */ color: oklch(45.9% 0.182 266.7);
Tailwind
colors: {
  custom: {
    50: '#7a7cd0',
    500: '#2a4abb',
    950: '#000000',
  },
}
SCSS
$custom: #2a4abb;
$custom-light: #7a7cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4abb",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 226.759,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45893,
    "c": 0.18166,
    "h": 266.7
  },
  "luminance": 0.08978
}

Semantic roles & 50–950 ramp

primary
#2A4ABB
secondary
#CAB876
accent
#C241E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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