#4A51BB#4A51BB

#4A51BB is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.0% C 0.164 H 275.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#4A51BB
RGBrgb(74, 81, 187)
HSLhsl(236, 45%, 51%)
HSVhsv(236, 60%, 73%)
CMYKcmyk(60.4%, 56.7%, 0%, 26.7%)
CIE-LABlab(39.46, 29.55, -56.95)
CIE-LCHlch(39.46, 64.16, 297.42°)
OKLaboklab(48.98% 0.0162 -0.1635)
OKLCHoklch(48.98% 0.164 275.7)
XYZxyz(14.7332, 10.9274, 48.3369)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51BB #BBB44A
analogous
#4A89BB #4A51BB #7B4ABB
triadic
#4A51BB #BB4A51 #51BB4A
tetradic
#4A51BB #BB4A89 #BBB44A #4ABB7B
square
#4A51BB #BB4A89 #BBB44A #4ABB7B
split-complementary
#4A51BB #BB7B4A #89BB4A
monochromatic
#262A65 #373C91 #4A51BB #767CCC #A3A7DC

Accessibility & contrast

On white

6.59
#4A51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4A51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51BB
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51BB#FFFFFF#000000##FFFFFF
##4A51BB1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4a51bb;
/* rgb */ color: rgb(74, 81, 187);
/* oklch */ color: oklch(49.0% 0.164 275.7);
Tailwind
colors: {
  custom: {
    50: '#8781d0',
    500: '#4a51bb',
    950: '#000000',
  },
}
SCSS
$custom: #4a51bb;
$custom-light: #8781d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51bb",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 236.283,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48979,
    "c": 0.16432,
    "h": 275.7
  },
  "luminance": 0.10929
}

Semantic roles & 50–950 ramp

primary
#4A51BB
secondary
#C9C697
accent
#CD53D5
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4A51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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