#2A4ABD#2A4ABD

#2A4ABD is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.1% C 0.184 H 266.8°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2A4ABD
RGBrgb(42, 74, 189)
HSLhsl(227, 64%, 45%)
HSVhsv(227, 78%, 74%)
CMYKcmyk(77.8%, 60.8%, 0%, 25.9%)
CIE-LABlab(36.10, 30.26, -63.66)
CIE-LCHlch(36.10, 70.49, 295.42°)
OKLaboklab(46.07% -0.0103 -0.184)
OKLCHoklch(46.07% 0.184 266.8)
XYZxyz(12.5857, 9.0625, 49.2202)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4ABD #BD9D2A
analogous
#2A93BD #2A4ABD #542ABD
triadic
#2A4ABD #BD2A4A #4ABD2A
tetradic
#2A4ABD #BD2A93 #BD9D2A #2ABD54
square
#2A4ABD #BD2A93 #BD9D2A #2ABD54
split-complementary
#2A4ABD #BD542A #93BD2A
monochromatic
#142359 #1F368B #2A4ABD #4D6BD7 #7F95E3

Accessibility & contrast

On white

7.47
#2A4ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2A4ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4ABD
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4ABD#FFFFFF#000000##FFFFFF
##2A4ABD1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4abd;
/* rgb */ color: rgb(42, 74, 189);
/* oklch */ color: oklch(46.1% 0.184 266.8);
Tailwind
colors: {
  custom: {
    50: '#7b7cd2',
    500: '#2a4abd',
    950: '#000000',
  },
}
SCSS
$custom: #2a4abd;
$custom-light: #7b7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4abd",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 189
  },
  "hsl": {
    "h": 226.939,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46068,
    "c": 0.18431,
    "h": 266.8
  },
  "luminance": 0.09064
}

Semantic roles & 50–950 ramp

primary
#2A4ABD
secondary
#CBB978
accent
#C341E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2A4ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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