#4A51CB#4A51CB

#4A51CB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.186 H 275.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#4A51CB
RGBrgb(74, 81, 203)
HSLhsl(237, 55%, 54%)
HSVhsv(237, 64%, 80%)
CMYKcmyk(63.5%, 60.1%, 0%, 20.4%)
CIE-LABlab(40.66, 34.95, -64.32)
CIE-LCHlch(40.66, 73.20, 298.52°)
OKLaboklab(50.24% 0.0162 -0.1852)
OKLCHoklch(50.24% 0.186 275)
XYZxyz(16.5424, 11.6511, 57.8655)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51CB #CBC44A
analogous
#4A92CB #4A51CB #844ACB
triadic
#4A51CB #CB4A51 #51CB4A
tetradic
#4A51CB #CB4A92 #CBC44A #4ACB84
square
#4A51CB #CB4A92 #CBC44A #4ACB84
split-complementary
#4A51CB #CB844A #92CB4A
monochromatic
#232778 #3037A8 #4A51CB #7A7FD9 #A9ACE6

Accessibility & contrast

On white

6.31
#4A51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4A51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51CB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51CB#FFFFFF#000000##FFFFFF
##4A51CB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4a51cb;
/* rgb */ color: rgb(74, 81, 203);
/* oklch */ color: oklch(50.2% 0.186 275.0);
Tailwind
colors: {
  custom: {
    50: '#8a82dc',
    500: '#4a51cb',
    950: '#000000',
  },
}
SCSS
$custom: #4a51cb;
$custom-light: #8a82dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51cb",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 236.744,
    "s": 55.365,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50244,
    "c": 0.18587,
    "h": 275
  },
  "luminance": 0.11653
}

Semantic roles & 50–950 ramp

primary
#4A51CB
secondary
#D4D19D
accent
#D749DF
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4A51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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