#4B51D7#4B51D7

#4B51D7 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.3% C 0.201 H 274.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#4B51D7
RGBrgb(75, 81, 215)
HSLhsl(237, 64%, 57%)
HSVhsv(237, 65%, 84%)
CMYKcmyk(65.1%, 62.3%, 0%, 15.7%)
CIE-LABlab(41.67, 39.13, -69.58)
CIE-LCHlch(41.67, 79.82, 299.36°)
OKLaboklab(51.3% 0.0168 -0.2006)
OKLCHoklch(51.3% 0.201 274.8)
XYZxyz(18.1058, 12.2854, 65.6940)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51D7 #D7D14B
analogous
#4B97D7 #4B51D7 #8B4BD7
triadic
#4B51D7 #D74B51 #51D74B
tetradic
#4B51D7 #D74B97 #D7D14B #4BD78B
square
#4B51D7 #D74B97 #D7D14B #4BD78B
split-complementary
#4B51D7 #D78B4B #97D74B
monochromatic
#1E2389 #2A30BB #4B51D7 #7D81E2 #AFB2ED

Accessibility & contrast

On white

6.07
#4B51D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4B51D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B51D7
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51D7#FFFFFF#000000##FFFFFF
##4B51D71.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4b51d7;
/* rgb */ color: rgb(75, 81, 215);
/* oklch */ color: oklch(51.3% 0.201 274.8);
Tailwind
colors: {
  custom: {
    50: '#8d82e4',
    500: '#4b51d7',
    950: '#000000',
  },
}
SCSS
$custom: #4b51d7;
$custom-light: #8d82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51d7",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 237.429,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51299,
    "c": 0.20128,
    "h": 274.8
  },
  "luminance": 0.12287
}

Semantic roles & 50–950 ramp

primary
#4B51D7
secondary
#DBD9A2
accent
#E041E7
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4B51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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