#4A51D6#4A51D6

#4A51D6 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.2% C 0.200 H 274.5°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#4A51D6
RGBrgb(74, 81, 214)
HSLhsl(237, 63%, 56%)
HSVhsv(237, 65%, 84%)
CMYKcmyk(65.4%, 62.1%, 0%, 16.1%)
CIE-LABlab(41.52, 38.66, -69.24)
CIE-LCHlch(41.52, 79.30, 299.17°)
OKLaboklab(51.15% 0.0157 -0.1996)
OKLCHoklch(51.15% 0.2 274.5)
XYZxyz(17.9001, 12.1942, 65.0157)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51D6 #D6CF4A
analogous
#4A97D6 #4A51D6 #894AD6
triadic
#4A51D6 #D64A51 #51D64A
tetradic
#4A51D6 #D64A97 #D6CF4A #4AD689
square
#4A51D6 #D64A97 #D6CF4A #4AD689
split-complementary
#4A51D6 #D6894A #97D64A
monochromatic
#1F2487 #2A31B9 #4A51D6 #7C81E1 #AEB1ED

Accessibility & contrast

On white

6.11
#4A51D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#4A51D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51D6
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51D6#FFFFFF#000000##FFFFFF
##4A51D61.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4a51d6;
/* rgb */ color: rgb(74, 81, 214);
/* oklch */ color: oklch(51.2% 0.200 274.5);
Tailwind
colors: {
  custom: {
    50: '#8c82e4',
    500: '#4a51d6',
    950: '#000000',
  },
}
SCSS
$custom: #4a51d6;
$custom-light: #8c82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51d6",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 237,
    "s": 63.063,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51153,
    "c": 0.20024,
    "h": 274.5
  },
  "luminance": 0.12196
}

Semantic roles & 50–950 ramp

primary
#4A51D6
secondary
#DBD8A1
accent
#DE42E6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #4A51D6

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

Preview Lab → · Contrast checker → · Palette generator →

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