#2A51BC#2A51BC

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

Color values

HEX#2A51BC
RGBrgb(42, 81, 188)
HSLhsl(224, 63%, 45%)
HSVhsv(224, 78%, 74%)
CMYKcmyk(77.7%, 56.9%, 0%, 26.3%)
CIE-LABlab(37.85, 25.30, -60.22)
CIE-LCHlch(37.85, 65.32, 292.78°)
OKLaboklab(47.35% -0.0149 -0.1738)
OKLCHoklch(47.35% 0.174 265.1)
XYZxyz(12.9712, 10.0065, 48.8150)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51BC #BC952A
analogous
#2A9ABC #2A51BC #4C2ABC
triadic
#2A51BC #BC2A51 #51BC2A
tetradic
#2A51BC #BC2A9A #BC952A #2ABC4C
square
#2A51BC #BC2A9A #BC952A #2ABC4C
split-complementary
#2A51BC #BC4C2A #9ABC2A
monochromatic
#142658 #1F3B8A #2A51BC #4C71D7 #7E99E2

Accessibility & contrast

On white

7.00
#2A51BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2A51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A51BC
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51BC#FFFFFF#000000##FFFFFF
##2A51BC1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a51bc;
/* rgb */ color: rgb(42, 81, 188);
/* oklch */ color: oklch(47.4% 0.174 265.1);
Tailwind
colors: {
  custom: {
    50: '#7a81d1',
    500: '#2a51bc',
    950: '#000000',
  },
}
SCSS
$custom: #2a51bc;
$custom-light: #7a81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51bc",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 223.973,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47351,
    "c": 0.17447,
    "h": 265.1
  },
  "luminance": 0.10008
}

Semantic roles & 50–950 ramp

primary
#2A51BC
secondary
#CBB477
accent
#BA41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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