#2C51BF#2C51BF

#2C51BF is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.178 H 265.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2C51BF
RGBrgb(44, 81, 191)
HSLhsl(225, 63%, 46%)
HSVhsv(225, 77%, 75%)
CMYKcmyk(77%, 57.6%, 0%, 25.1%)
CIE-LABlab(38.16, 26.65, -61.47)
CIE-LCHlch(38.16, 66.99, 293.44°)
OKLaboklab(47.68% -0.0132 -0.1774)
OKLCHoklch(47.68% 0.178 265.7)
XYZxyz(13.3818, 10.1804, 50.5399)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51BF #BF9A2C
analogous
#2C9ABF #2C51BF #502CBF
triadic
#2C51BF #BF2C51 #51BF2C
tetradic
#2C51BF #BF2C9A #BF9A2C #2CBF50
square
#2C51BF #BF2C9A #BF9A2C #2CBF50
split-complementary
#2C51BF #BF502C #9ABF2C
monochromatic
#15275C #213C8D #2C51BF #5173D7 #839BE2

Accessibility & contrast

On white

6.92
#2C51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2C51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C51BF
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51BF#FFFFFF#000000##FFFFFF
##2C51BF1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2c51bf;
/* rgb */ color: rgb(44, 81, 191);
/* oklch */ color: oklch(47.7% 0.178 265.7);
Tailwind
colors: {
  custom: {
    50: '#7b81d3',
    500: '#2c51bf',
    950: '#000000',
  },
}
SCSS
$custom: #2c51bf;
$custom-light: #7b81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51bf",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 224.898,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47679,
    "c": 0.17794,
    "h": 265.7
  },
  "luminance": 0.10182
}

Semantic roles & 50–950 ramp

primary
#2C51BF
secondary
#CCB77B
accent
#BC42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2C51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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