#2C51B3#2C51B3

#2C51B3 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.162 H 265.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2C51B3
RGBrgb(44, 81, 179)
HSLhsl(224, 61%, 44%)
HSVhsv(224, 75%, 70%)
CMYKcmyk(75.4%, 54.7%, 0%, 29.8%)
CIE-LABlab(37.25, 22.10, -55.90)
CIE-LCHlch(37.25, 60.12, 291.57°)
OKLaboklab(46.7% -0.014 -0.1611)
OKLCHoklch(46.7% 0.162 265)
XYZxyz(12.1149, 9.6737, 43.8678)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51B3 #B38E2C
analogous
#2C94B3 #2C51B3 #4B2CB3
triadic
#2C51B3 #B32C51 #51B32C
tetradic
#2C51B3 #B32C94 #B38E2C #2CB34B
square
#2C51B3 #B32C94 #B38E2C #2CB34B
split-complementary
#2C51B3 #B34B2C #94B32C
monochromatic
#142551 #203B82 #2C51B3 #4A6FD2 #7B96DF

Accessibility & contrast

On white

7.16
#2C51B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C51B3
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C51B3#FFFFFF#000000##FFFFFF
##2C51B31.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c51b3;
/* rgb */ color: rgb(44, 81, 179);
/* oklch */ color: oklch(46.7% 0.162 265.0);
Tailwind
colors: {
  custom: {
    50: '#7981ca',
    500: '#2c51b3',
    950: '#000000',
  },
}
SCSS
$custom: #2c51b3;
$custom-light: #7981ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51b3",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 223.556,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46703,
    "c": 0.1617,
    "h": 265
  },
  "luminance": 0.09675
}

Semantic roles & 50–950 ramp

primary
#2C51B3
secondary
#C7B074
accent
#B844E4
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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