#2C51B0#2C51B0

#2C51B0 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.158 H 264.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2C51B0
RGBrgb(44, 81, 176)
HSLhsl(223, 60%, 43%)
HSVhsv(223, 75%, 69%)
CMYKcmyk(75%, 54%, 0%, 31%)
CIE-LABlab(37.03, 20.96, -54.49)
CIE-LCHlch(37.03, 58.38, 291.04°)
OKLaboklab(46.47% -0.0142 -0.1569)
OKLCHoklch(46.47% 0.158 264.8)
XYZxyz(11.8148, 9.5536, 42.2872)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51B0 #B08B2C
analogous
#2C93B0 #2C51B0 #492CB0
triadic
#2C51B0 #B02C51 #51B02C
tetradic
#2C51B0 #B02C93 #B08B2C #2CB049
square
#2C51B0 #B02C93 #B08B2C #2CB049
split-complementary
#2C51B0 #B0492C #93B02C
monochromatic
#14244E #203A7F #2C51B0 #486ED1 #7995DD

Accessibility & contrast

On white

7.21
#2C51B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2C51B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C51B0
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51B0#FFFFFF#000000##FFFFFF
##2C51B01.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#055DB3
Deuteranopia (green-blind)
#0051AE
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2c51b0;
/* rgb */ color: rgb(44, 81, 176);
/* oklch */ color: oklch(46.5% 0.158 264.8);
Tailwind
colors: {
  custom: {
    50: '#7881c8',
    500: '#2c51b0',
    950: '#000000',
  },
}
SCSS
$custom: #2c51b0;
$custom-light: #7881c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51b0",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 176
  },
  "hsl": {
    "h": 223.182,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46466,
    "c": 0.15758,
    "h": 264.8
  },
  "luminance": 0.09555
}

Semantic roles & 50–950 ramp

primary
#2C51B0
secondary
#C6AE72
accent
#B745E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C51B0

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

Preview Lab → · Contrast checker → · Palette generator →

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