#2C51B2#2C51B2

#2C51B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.6% C 0.160 H 265.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2C51B2
RGBrgb(44, 81, 178)
HSLhsl(223, 60%, 44%)
HSVhsv(223, 75%, 70%)
CMYKcmyk(75.3%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.18, 21.72, -55.43)
CIE-LCHlch(37.18, 59.54, 291.40°)
OKLaboklab(46.62% -0.014 -0.1597)
OKLCHoklch(46.62% 0.16 265)
XYZxyz(12.0142, 9.6334, 43.3371)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51B2 #B28D2C
analogous
#2C94B2 #2C51B2 #4A2CB2
triadic
#2C51B2 #B22C51 #51B22C
tetradic
#2C51B2 #B22C94 #B28D2C #2CB24A
square
#2C51B2 #B22C94 #B28D2C #2CB24A
split-complementary
#2C51B2 #B24A2C #94B22C
monochromatic
#142450 #203B81 #2C51B2 #496FD2 #7A96DE

Accessibility & contrast

On white

7.17
#2C51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2C51B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C51B2
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51B2#FFFFFF#000000##FFFFFF
##2C51B21.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2c51b2;
/* rgb */ color: rgb(44, 81, 178);
/* oklch */ color: oklch(46.6% 0.160 265.0);
Tailwind
colors: {
  custom: {
    50: '#7881ca',
    500: '#2c51b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c51b2;
$custom-light: #7881ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51b2",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 223.433,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46624,
    "c": 0.16034,
    "h": 265
  },
  "luminance": 0.09635
}

Semantic roles & 50–950 ramp

primary
#2C51B2
secondary
#C6AF73
accent
#B844E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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