#4B51E1#4B51E1

#4B51E1 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.1% C 0.214 H 274.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#4B51E1
RGBrgb(75, 81, 225)
HSLhsl(238, 71%, 59%)
HSVhsv(238, 67%, 88%)
CMYKcmyk(66.7%, 64%, 0%, 11.8%)
CIE-LABlab(42.48, 42.46, -73.95)
CIE-LCHlch(42.48, 85.27, 299.86°)
OKLaboklab(52.15% 0.0161 -0.2134)
OKLCHoklch(52.15% 0.214 274.3)
XYZxyz(19.4302, 12.8152, 72.6692)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51E1 #E1DB4B
analogous
#4B9CE1 #4B51E1 #904BE1
triadic
#4B51E1 #E14B51 #51E14B
tetradic
#4B51E1 #E14B9C #E1DB4B #4BE190
square
#4B51E1 #E14B9C #E1DB4B #4BE190
split-complementary
#4B51E1 #E1904B #9CE14B
monochromatic
#191E98 #2229CD #4B51E1 #7F84EA #B4B6F2

Accessibility & contrast

On white

5.89
#4B51E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4B51E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B51E1
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51E1#FFFFFF#000000##FFFFFF
##4B51E11.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE6
Deuteranopia (green-blind)
#005EDE
Tritanopia (blue-blind)
#007692
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4b51e1;
/* rgb */ color: rgb(75, 81, 225);
/* oklch */ color: oklch(52.1% 0.214 274.3);
Tailwind
colors: {
  custom: {
    50: '#8f82eb',
    500: '#4b51e1',
    950: '#000000',
  },
}
SCSS
$custom: #4b51e1;
$custom-light: #8f82eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51e1",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 237.6,
    "s": 71.429,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5215,
    "c": 0.21402,
    "h": 274.3
  },
  "luminance": 0.12817
}

Semantic roles & 50–950 ramp

primary
#4B51E1
secondary
#E1DFA6
accent
#E73AEE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4B51E1

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

Preview Lab → · Contrast checker → · Palette generator →

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