#2C51BD#2C51BD

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

Color values

HEX#2C51BD
RGBrgb(44, 81, 189)
HSLhsl(225, 62%, 46%)
HSVhsv(225, 77%, 74%)
CMYKcmyk(76.7%, 57.1%, 0%, 25.9%)
CIE-LABlab(38.01, 25.89, -60.55)
CIE-LCHlch(38.01, 65.85, 293.15°)
OKLaboklab(47.51% -0.0133 -0.1748)
OKLCHoklch(47.51% 0.175 265.6)
XYZxyz(13.1632, 10.0930, 49.3886)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51BD #BD982C
analogous
#2C99BD #2C51BD #502CBD
triadic
#2C51BD #BD2C51 #51BD2C
tetradic
#2C51BD #BD2C99 #BD982C #2CBD50
square
#2C51BD #BD2C99 #BD982C #2CBD50
split-complementary
#2C51BD #BD502C #99BD2C
monochromatic
#15265A #203C8B #2C51BD #5072D6 #829AE2

Accessibility & contrast

On white

6.96
#2C51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2C51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C51BD
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51BD#FFFFFF#000000##FFFFFF
##2C51BD1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.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: #2c51bd;
/* rgb */ color: rgb(44, 81, 189);
/* oklch */ color: oklch(47.5% 0.175 265.6);
Tailwind
colors: {
  custom: {
    50: '#7b81d2',
    500: '#2c51bd',
    950: '#000000',
  },
}
SCSS
$custom: #2c51bd;
$custom-light: #7b81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51bd",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 224.69,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47513,
    "c": 0.17527,
    "h": 265.6
  },
  "luminance": 0.10094
}

Semantic roles & 50–950 ramp

primary
#2C51BD
secondary
#CBB67A
accent
#BC42E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2C51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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