#2C51C1#2C51C1

#2C51C1 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.181 H 265.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#2C51C1
RGBrgb(44, 81, 193)
HSLhsl(225, 63%, 46%)
HSVhsv(225, 77%, 76%)
CMYKcmyk(77.2%, 58%, 0%, 24.3%)
CIE-LABlab(38.32, 27.40, -62.38)
CIE-LCHlch(38.32, 68.13, 293.71°)
OKLaboklab(47.85% -0.0132 -0.1801)
OKLCHoklch(47.85% 0.181 265.8)
XYZxyz(13.6034, 10.2690, 51.7069)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51C1 #C19C2C
analogous
#2C9CC1 #2C51C1 #522CC1
triadic
#2C51C1 #C12C51 #51C12C
tetradic
#2C51C1 #C12C9C #C19C2C #2CC152
square
#2C51C1 #C12C9C #C19C2C #2CC152
split-complementary
#2C51C1 #C1522C #9CC12C
monochromatic
#15275D #213C8F #2C51C1 #5374D8 #849CE3

Accessibility & contrast

On white

6.88
#2C51C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2C51C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C51C1
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51C1#FFFFFF#000000##FFFFFF
##2C51C11.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2c51c1;
/* rgb */ color: rgb(44, 81, 193);
/* oklch */ color: oklch(47.8% 0.181 265.8);
Tailwind
colors: {
  custom: {
    50: '#7c81d5',
    500: '#2c51c1',
    950: '#000000',
  },
}
SCSS
$custom: #2c51c1;
$custom-light: #7c81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51c1",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 193
  },
  "hsl": {
    "h": 225.101,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47845,
    "c": 0.18062,
    "h": 265.8
  },
  "luminance": 0.10271
}

Semantic roles & 50–950 ramp

primary
#2C51C1
secondary
#CCB87D
accent
#BD42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2C51C1

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

Preview Lab → · Contrast checker → · Palette generator →

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