#4C51DB#4C51DB

#4C51DB is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.7% C 0.206 H 274.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#4C51DB
RGBrgb(76, 81, 219)
HSLhsl(238, 67%, 58%)
HSVhsv(238, 65%, 86%)
CMYKcmyk(65.3%, 63%, 0%, 14.1%)
CIE-LABlab(42.05, 40.60, -71.23)
CIE-LCHlch(42.05, 81.99, 299.69°)
OKLaboklab(51.7% 0.0177 -0.2054)
OKLCHoklch(51.7% 0.206 274.9)
XYZxyz(18.7049, 12.5342, 68.4377)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51DB #DBD64C
analogous
#4C98DB #4C51DB #8E4CDB
triadic
#4C51DB #DB4C51 #51DB4C
tetradic
#4C51DB #DB4C98 #DBD64C #4CDB8E
square
#4C51DB #DB4C98 #DBD64C #4CDB8E
split-complementary
#4C51DB #DB8E4C #98DB4C
monochromatic
#1D2190 #272DC3 #4C51DB #7F83E5 #B2B4EF

Accessibility & contrast

On white

5.99
#4C51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4C51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51DB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51DB#FFFFFF#000000##FFFFFF
##4C51DB1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#005DD8
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4c51db;
/* rgb */ color: rgb(76, 81, 219);
/* oklch */ color: oklch(51.7% 0.206 274.9);
Tailwind
colors: {
  custom: {
    50: '#8e82e7',
    500: '#4c51db',
    950: '#000000',
  },
}
SCSS
$custom: #4c51db;
$custom-light: #8e82e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51db",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 237.902,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51699,
    "c": 0.20617,
    "h": 274.9
  },
  "luminance": 0.12536
}

Semantic roles & 50–950 ramp

primary
#4C51DB
secondary
#DEDCA5
accent
#E33EE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4C51DB

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

Preview Lab → · Contrast checker → · Palette generator →

#4C51DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva