#2A4DB4#2A4DB4

#2A4DB4 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.169 H 265.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#2A4DB4
RGBrgb(42, 77, 180)
HSLhsl(225, 62%, 44%)
HSVhsv(225, 77%, 71%)
CMYKcmyk(76.7%, 57.2%, 0%, 29.4%)
CIE-LABlab(36.16, 24.89, -58.26)
CIE-LCHlch(36.16, 63.36, 293.14°)
OKLaboklab(45.89% -0.0126 -0.1681)
OKLCHoklch(45.89% 0.169 265.7)
XYZxyz(11.8440, 9.0940, 44.3023)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DB4 #B4912A
analogous
#2A92B4 #2A4DB4 #4C2AB4
triadic
#2A4DB4 #B42A4D #4DB42A
tetradic
#2A4DB4 #B42A92 #B4912A #2AB44C
square
#2A4DB4 #B42A92 #B4912A #2AB44C
split-complementary
#2A4DB4 #B44C2A #92B42A
monochromatic
#132351 #1E3882 #2A4DB4 #476BD4 #7993E0

Accessibility & contrast

On white

7.45
#2A4DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2A4DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DB4
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DB4#FFFFFF#000000##FFFFFF
##2A4DB41.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4db4;
/* rgb */ color: rgb(42, 77, 180);
/* oklch */ color: oklch(45.9% 0.169 265.7);
Tailwind
colors: {
  custom: {
    50: '#787ecb',
    500: '#2a4db4',
    950: '#000000',
  },
}
SCSS
$custom: #2a4db4;
$custom-light: #787ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4db4",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 224.783,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45887,
    "c": 0.16861,
    "h": 265.7
  },
  "luminance": 0.09095
}

Semantic roles & 50–950 ramp

primary
#2A4DB4
secondary
#C8B272
accent
#BC43E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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