#4A51D4#4A51D4

#4A51D4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.198 H 274.6°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#4A51D4
RGBrgb(74, 81, 212)
HSLhsl(237, 62%, 56%)
HSVhsv(237, 65%, 83%)
CMYKcmyk(65.1%, 61.8%, 0%, 16.9%)
CIE-LABlab(41.36, 37.98, -68.35)
CIE-LCHlch(41.36, 78.20, 299.06°)
OKLaboklab(50.99% 0.0158 -0.197)
OKLCHoklch(50.99% 0.198 274.6)
XYZxyz(17.6462, 12.0926, 63.6788)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51D4 #D4CD4A
analogous
#4A96D4 #4A51D4 #884AD4
triadic
#4A51D4 #D44A51 #51D44A
tetradic
#4A51D4 #D44A96 #D4CD4A #4AD488
square
#4A51D4 #D44A96 #D4CD4A #4AD488
split-complementary
#4A51D4 #D4884A #96D44A
monochromatic
#1F2584 #2B32B6 #4A51D4 #7B81E0 #ADB0EB

Accessibility & contrast

On white

6.14
#4A51D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4A51D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51D4
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51D4#FFFFFF#000000##FFFFFF
##4A51D41.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#005BD1
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4a51d4;
/* rgb */ color: rgb(74, 81, 212);
/* oklch */ color: oklch(51.0% 0.198 274.6);
Tailwind
colors: {
  custom: {
    50: '#8c82e2',
    500: '#4a51d4',
    950: '#000000',
  },
}
SCSS
$custom: #4a51d4;
$custom-light: #8c82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51d4",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 236.957,
    "s": 61.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50985,
    "c": 0.19765,
    "h": 274.6
  },
  "luminance": 0.12094
}

Semantic roles & 50–950 ramp

primary
#4A51D4
secondary
#D9D7A0
accent
#DD43E5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0D0A15
muted
#7E7C84

Preview Lab

Preview with #4A51D4

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

Preview Lab → · Contrast checker → · Palette generator →

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