#2A51BD#2A51BD

#2A51BD is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.176 H 265.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2A51BD
RGBrgb(42, 81, 189)
HSLhsl(224, 64%, 45%)
HSVhsv(224, 78%, 74%)
CMYKcmyk(77.8%, 57.1%, 0%, 25.9%)
CIE-LABlab(37.93, 25.67, -60.68)
CIE-LCHlch(37.93, 65.89, 292.93°)
OKLaboklab(47.43% -0.0149 -0.1752)
OKLCHoklch(47.43% 0.176 265.1)
XYZxyz(13.0793, 10.0497, 49.3847)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51BD #BD962A
analogous
#2A9ABD #2A51BD #4D2ABD
triadic
#2A51BD #BD2A51 #51BD2A
tetradic
#2A51BD #BD2A9A #BD962A #2ABD4D
square
#2A51BD #BD2A9A #BD962A #2ABD4D
split-complementary
#2A51BD #BD4D2A #9ABD2A
monochromatic
#142659 #1F3C8B #2A51BD #4D72D7 #7F99E3

Accessibility & contrast

On white

6.98
#2A51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2A51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A51BD
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51BD#FFFFFF#000000##FFFFFF
##2A51BD1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a51bd;
/* rgb */ color: rgb(42, 81, 189);
/* oklch */ color: oklch(47.4% 0.176 265.1);
Tailwind
colors: {
  custom: {
    50: '#7a81d2',
    500: '#2a51bd',
    950: '#000000',
  },
}
SCSS
$custom: #2a51bd;
$custom-light: #7a81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51bd",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 224.082,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47434,
    "c": 0.17581,
    "h": 265.1
  },
  "luminance": 0.10051
}

Semantic roles & 50–950 ramp

primary
#2A51BD
secondary
#CBB578
accent
#BB41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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