#2A4DB5#2A4DB5

#2A4DB5 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.170 H 265.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2A4DB5
RGBrgb(42, 77, 181)
HSLhsl(225, 62%, 44%)
HSVhsv(225, 77%, 71%)
CMYKcmyk(76.8%, 57.5%, 0%, 29%)
CIE-LABlab(36.24, 25.27, -58.73)
CIE-LCHlch(36.24, 63.93, 293.29°)
OKLaboklab(45.97% -0.0125 -0.1695)
OKLCHoklch(45.97% 0.17 265.8)
XYZxyz(11.9463, 9.1348, 44.8407)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DB5 #B5922A
analogous
#2A92B5 #2A4DB5 #4C2AB5
triadic
#2A4DB5 #B52A4D #4DB52A
tetradic
#2A4DB5 #B52A92 #B5922A #2AB54C
square
#2A4DB5 #B52A92 #B5922A #2AB54C
split-complementary
#2A4DB5 #B54C2A #92B52A
monochromatic
#132352 #1E3883 #2A4DB5 #486BD4 #7993E0

Accessibility & contrast

On white

7.43
#2A4DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2A4DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DB5
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DB5#FFFFFF#000000##FFFFFF
##2A4DB51.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4db5;
/* rgb */ color: rgb(42, 77, 181);
/* oklch */ color: oklch(46.0% 0.170 265.8);
Tailwind
colors: {
  custom: {
    50: '#797ecc',
    500: '#2a4db5',
    950: '#000000',
  },
}
SCSS
$custom: #2a4db5;
$custom-light: #797ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4db5",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 181
  },
  "hsl": {
    "h": 224.892,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4597,
    "c": 0.16996,
    "h": 265.8
  },
  "luminance": 0.09136
}

Semantic roles & 50–950 ramp

primary
#2A4DB5
secondary
#C8B373
accent
#BC42E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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