#2B51BD#2B51BD

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

Color values

HEX#2B51BD
RGBrgb(43, 81, 189)
HSLhsl(224, 63%, 45%)
HSVhsv(224, 77%, 74%)
CMYKcmyk(77.2%, 57.1%, 0%, 25.9%)
CIE-LABlab(37.97, 25.78, -60.62)
CIE-LCHlch(37.97, 65.87, 293.04°)
OKLaboklab(47.47% -0.0141 -0.175)
OKLCHoklch(47.47% 0.176 265.4)
XYZxyz(13.1208, 10.0711, 49.3867)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B51BD #BD972B
analogous
#2B9ABD #2B51BD #4E2BBD
triadic
#2B51BD #BD2B51 #51BD2B
tetradic
#2B51BD #BD2B9A #BD972B #2BBD4E
square
#2B51BD #BD2B9A #BD972B #2BBD4E
split-complementary
#2B51BD #BD4E2B #9ABD2B
monochromatic
#142659 #203C8B #2B51BD #4E72D7 #809AE2

Accessibility & contrast

On white

6.97
#2B51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2B51BD
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B51BD#FFFFFF#000000##FFFFFF
##2B51BD1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.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: #2b51bd;
/* rgb */ color: rgb(43, 81, 189);
/* oklch */ color: oklch(47.5% 0.176 265.4);
Tailwind
colors: {
  custom: {
    50: '#7b81d2',
    500: '#2b51bd',
    950: '#000000',
  },
}
SCSS
$custom: #2b51bd;
$custom-light: #7b81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b51bd",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 224.384,
    "s": 62.931,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47473,
    "c": 0.17554,
    "h": 265.4
  },
  "luminance": 0.10073
}

Semantic roles & 50–950 ramp

primary
#2B51BD
secondary
#CBB679
accent
#BB42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2B51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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