#2C51C2#2C51C2

#2C51C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.182 H 265.9°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2C51C2
RGBrgb(44, 81, 194)
HSLhsl(225, 63%, 47%)
HSVhsv(225, 77%, 76%)
CMYKcmyk(77.3%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.40, 27.77, -62.83)
CIE-LCHlch(38.40, 68.70, 293.85°)
OKLaboklab(47.93% -0.0131 -0.1815)
OKLCHoklch(47.93% 0.182 265.9)
XYZxyz(13.7153, 10.3138, 52.2964)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51C2 #C29D2C
analogous
#2C9CC2 #2C51C2 #522CC2
triadic
#2C51C2 #C22C51 #51C22C
tetradic
#2C51C2 #C22C9C #C29D2C #2CC252
square
#2C51C2 #C22C9C #C29D2C #2CC252
split-complementary
#2C51C2 #C2522C #9CC22C
monochromatic
#15275E #213C90 #2C51C2 #5374D8 #859CE3

Accessibility & contrast

On white

6.86
#2C51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2C51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C51C2
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51C2#FFFFFF#000000##FFFFFF
##2C51C21.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2c51c2;
/* rgb */ color: rgb(44, 81, 194);
/* oklch */ color: oklch(47.9% 0.182 265.9);
Tailwind
colors: {
  custom: {
    50: '#7c81d5',
    500: '#2c51c2',
    950: '#000000',
  },
}
SCSS
$custom: #2c51c2;
$custom-light: #7c81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51c2",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 225.2,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.18194,
    "h": 265.9
  },
  "luminance": 0.10315
}

Semantic roles & 50–950 ramp

primary
#2C51C2
secondary
#CDB97D
accent
#BE42E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2C51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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