#2C51B6#2C51B6

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

Color values

HEX#2C51B6
RGBrgb(44, 81, 182)
HSLhsl(224, 61%, 44%)
HSVhsv(224, 76%, 71%)
CMYKcmyk(75.8%, 55.5%, 0%, 28.6%)
CIE-LABlab(37.47, 23.24, -57.31)
CIE-LCHlch(37.47, 61.84, 292.08°)
OKLaboklab(46.94% -0.0137 -0.1652)
OKLCHoklch(46.94% 0.166 265.2)
XYZxyz(12.4217, 9.7964, 45.4831)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51B6 #B6912C
analogous
#2C96B6 #2C51B6 #4C2CB6
triadic
#2C51B6 #B62C51 #51B62C
tetradic
#2C51B6 #B62C96 #B6912C #2CB64C
square
#2C51B6 #B62C96 #B6912C #2CB64C
split-complementary
#2C51B6 #B64C2C #96B62C
monochromatic
#142553 #203B85 #2C51B6 #4C70D4 #7D97E0

Accessibility & contrast

On white

7.10
#2C51B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2C51B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C51B6
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51B6#FFFFFF#000000##FFFFFF
##2C51B61.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.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: #2c51b6;
/* rgb */ color: rgb(44, 81, 182);
/* oklch */ color: oklch(46.9% 0.166 265.2);
Tailwind
colors: {
  custom: {
    50: '#7981cd',
    500: '#2c51b6',
    950: '#000000',
  },
}
SCSS
$custom: #2c51b6;
$custom-light: #7981cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51b6",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 182
  },
  "hsl": {
    "h": 223.913,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46943,
    "c": 0.16581,
    "h": 265.2
  },
  "luminance": 0.09798
}

Semantic roles & 50–950 ramp

primary
#2C51B6
secondary
#C8B276
accent
#B944E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2C51B6

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

Preview Lab → · Contrast checker → · Palette generator →

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