#4A51CD#4A51CD

#4A51CD is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.4% C 0.189 H 274.9°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#4A51CD
RGBrgb(74, 81, 205)
HSLhsl(237, 57%, 55%)
HSVhsv(237, 64%, 80%)
CMYKcmyk(63.9%, 60.5%, 0%, 19.6%)
CIE-LABlab(40.81, 35.63, -65.22)
CIE-LCHlch(40.81, 74.32, 298.65°)
OKLaboklab(50.41% 0.0161 -0.1878)
OKLCHoklch(50.41% 0.189 274.9)
XYZxyz(16.7823, 11.7471, 59.1288)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51CD #CDC64A
analogous
#4A93CD #4A51CD #854ACD
triadic
#4A51CD #CD4A51 #51CD4A
tetradic
#4A51CD #CD4A93 #CDC64A #4ACD85
square
#4A51CD #CD4A93 #CDC64A #4ACD85
split-complementary
#4A51CD #CD854A #93CD4A
monochromatic
#22277B #2F36AB #4A51CD #7A7FDA #AAADE7

Accessibility & contrast

On white

6.27
#4A51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4A51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51CD
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51CD#FFFFFF#000000##FFFFFF
##4A51CD1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4a51cd;
/* rgb */ color: rgb(74, 81, 205);
/* oklch */ color: oklch(50.4% 0.189 274.9);
Tailwind
colors: {
  custom: {
    50: '#8b82dd',
    500: '#4a51cd',
    950: '#000000',
  },
}
SCSS
$custom: #4a51cd;
$custom-light: #8b82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51cd",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 236.794,
    "s": 56.71,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50407,
    "c": 0.18851,
    "h": 274.9
  },
  "luminance": 0.11748
}

Semantic roles & 50–950 ramp

primary
#4A51CD
secondary
#D5D29E
accent
#D848E0
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4A51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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