#2A51B9#2A51B9

#2A51B9 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.170 H 264.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2A51B9
RGBrgb(42, 81, 185)
HSLhsl(224, 63%, 45%)
HSVhsv(224, 77%, 73%)
CMYKcmyk(77.3%, 56.2%, 0%, 27.5%)
CIE-LABlab(37.62, 24.15, -58.84)
CIE-LCHlch(37.62, 63.60, 292.32°)
OKLaboklab(47.11% -0.0151 -0.1698)
OKLCHoklch(47.11% 0.17 264.9)
XYZxyz(12.6511, 9.8784, 47.1295)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51B9 #B9922A
analogous
#2A99B9 #2A51B9 #4A2AB9
triadic
#2A51B9 #B92A51 #51B92A
tetradic
#2A51B9 #B92A99 #B9922A #2AB94A
square
#2A51B9 #B92A99 #B9922A #2AB94A
split-complementary
#2A51B9 #B94A2A #99B92A
monochromatic
#132555 #1F3B87 #2A51B9 #4A70D6 #7C98E1

Accessibility & contrast

On white

7.06
#2A51B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2A51B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51B9
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51B9#FFFFFF#000000##FFFFFF
##2A51B91.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a51b9;
/* rgb */ color: rgb(42, 81, 185);
/* oklch */ color: oklch(47.1% 0.170 264.9);
Tailwind
colors: {
  custom: {
    50: '#7981cf',
    500: '#2a51b9',
    950: '#000000',
  },
}
SCSS
$custom: #2a51b9;
$custom-light: #7981cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51b9",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 185
  },
  "hsl": {
    "h": 223.636,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47105,
    "c": 0.17043,
    "h": 264.9
  },
  "luminance": 0.0988
}

Semantic roles & 50–950 ramp

primary
#2A51B9
secondary
#CAB375
accent
#B942E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A51B9

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

Preview Lab → · Contrast checker → · Palette generator →

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