#2C51B4#2C51B4

#2C51B4 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.163 H 265.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2C51B4
RGBrgb(44, 81, 180)
HSLhsl(224, 61%, 44%)
HSVhsv(224, 76%, 71%)
CMYKcmyk(75.6%, 55%, 0%, 29.4%)
CIE-LABlab(37.32, 22.48, -56.37)
CIE-LCHlch(37.32, 60.69, 291.74°)
OKLaboklab(46.78% -0.0139 -0.1625)
OKLCHoklch(46.78% 0.163 265.1)
XYZxyz(12.2164, 9.7143, 44.4024)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51B4 #B48F2C
analogous
#2C95B4 #2C51B4 #4B2CB4
triadic
#2C51B4 #B42C51 #51B42C
tetradic
#2C51B4 #B42C95 #B48F2C #2CB44B
square
#2C51B4 #B42C95 #B48F2C #2CB44B
split-complementary
#2C51B4 #B44B2C #95B42C
monochromatic
#142552 #203B83 #2C51B4 #4A6FD3 #7C97DF

Accessibility & contrast

On white

7.14
#2C51B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2C51B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C51B4
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51B4#FFFFFF#000000##FFFFFF
##2C51B41.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c51b4;
/* rgb */ color: rgb(44, 81, 180);
/* oklch */ color: oklch(46.8% 0.163 265.1);
Tailwind
colors: {
  custom: {
    50: '#7981cb',
    500: '#2c51b4',
    950: '#000000',
  },
}
SCSS
$custom: #2c51b4;
$custom-light: #7981cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51b4",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 223.676,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46783,
    "c": 0.16307,
    "h": 265.1
  },
  "luminance": 0.09716
}

Semantic roles & 50–950 ramp

primary
#2C51B4
secondary
#C7B175
accent
#B844E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C51B4

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

Preview Lab → · Contrast checker → · Palette generator →

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