#2A51B6#2A51B6

#2A51B6 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.166 H 264.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2A51B6
RGBrgb(42, 81, 182)
HSLhsl(223, 63%, 44%)
HSVhsv(223, 77%, 71%)
CMYKcmyk(76.9%, 55.5%, 0%, 28.6%)
CIE-LABlab(37.40, 23.01, -57.44)
CIE-LCHlch(37.40, 61.88, 291.83°)
OKLaboklab(46.86% -0.0153 -0.1657)
OKLCHoklch(46.86% 0.166 264.7)
XYZxyz(12.3378, 9.7531, 45.4792)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51B6 #B68F2A
analogous
#2A97B6 #2A51B6 #492AB6
triadic
#2A51B6 #B62A51 #51B62A
tetradic
#2A51B6 #B62A97 #B68F2A #2AB649
square
#2A51B6 #B62A97 #B68F2A #2AB649
split-complementary
#2A51B6 #B6492A #97B62A
monochromatic
#132553 #1F3B84 #2A51B6 #486FD5 #7A97E0

Accessibility & contrast

On white

7.12
#2A51B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2A51B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51B6
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51B6#FFFFFF#000000##FFFFFF
##2A51B61.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a51b6;
/* rgb */ color: rgb(42, 81, 182);
/* oklch */ color: oklch(46.9% 0.166 264.7);
Tailwind
colors: {
  custom: {
    50: '#7981cd',
    500: '#2a51b6',
    950: '#000000',
  },
}
SCSS
$custom: #2a51b6;
$custom-light: #7981cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51b6",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 182
  },
  "hsl": {
    "h": 223.286,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46862,
    "c": 0.16637,
    "h": 264.7
  },
  "luminance": 0.09754
}

Semantic roles & 50–950 ramp

primary
#2A51B6
secondary
#C8B173
accent
#B842E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A51B6

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

Preview Lab → · Contrast checker → · Palette generator →

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