#2C51BE#2C51BE

#2C51BE is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.177 H 265.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2C51BE
RGBrgb(44, 81, 190)
HSLhsl(225, 62%, 46%)
HSVhsv(225, 77%, 75%)
CMYKcmyk(76.8%, 57.4%, 0%, 25.5%)
CIE-LABlab(38.09, 26.27, -61.01)
CIE-LCHlch(38.09, 66.42, 293.30°)
OKLaboklab(47.6% -0.0133 -0.1761)
OKLCHoklch(47.6% 0.177 265.7)
XYZxyz(13.2721, 10.1365, 49.9623)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51BE #BE992C
analogous
#2C9ABE #2C51BE #502CBE
triadic
#2C51BE #BE2C51 #51BE2C
tetradic
#2C51BE #BE2C9A #BE992C #2CBE50
square
#2C51BE #BE2C9A #BE992C #2CBE50
split-complementary
#2C51BE #BE502C #9ABE2C
monochromatic
#15275B #203C8C #2C51BE #5173D7 #829BE2

Accessibility & contrast

On white

6.94
#2C51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2C51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C51BE
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51BE#FFFFFF#000000##FFFFFF
##2C51BE1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2c51be;
/* rgb */ color: rgb(44, 81, 190);
/* oklch */ color: oklch(47.6% 0.177 265.7);
Tailwind
colors: {
  custom: {
    50: '#7b81d2',
    500: '#2c51be',
    950: '#000000',
  },
}
SCSS
$custom: #2c51be;
$custom-light: #7b81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51be",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 224.795,
    "s": 62.393,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47596,
    "c": 0.17661,
    "h": 265.7
  },
  "luminance": 0.10138
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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