#4B51D5#4B51D5

#4B51D5 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.199 H 274.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#4B51D5
RGBrgb(75, 81, 213)
HSLhsl(237, 62%, 56%)
HSVhsv(237, 65%, 84%)
CMYKcmyk(64.8%, 62%, 0%, 16.5%)
CIE-LABlab(41.51, 38.46, -68.69)
CIE-LCHlch(41.51, 78.73, 299.25°)
OKLaboklab(51.13% 0.0169 -0.198)
OKLCHoklch(51.13% 0.199 274.9)
XYZxyz(17.8504, 12.1833, 64.3488)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51D5 #D5CF4B
analogous
#4B96D5 #4B51D5 #8A4BD5
triadic
#4B51D5 #D54B51 #51D54B
tetradic
#4B51D5 #D54B96 #D5CF4B #4BD58A
square
#4B51D5 #D54B96 #D5CF4B #4BD58A
split-complementary
#4B51D5 #D58A4B #96D54B
monochromatic
#1F2486 #2B31B8 #4B51D5 #7D81E1 #AEB1EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B51D5#FFFFFF#000000##FFFFFF
##4B51D51.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)
#0068D9
Deuteranopia (green-blind)
#005CD2
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4b51d5;
/* rgb */ color: rgb(75, 81, 213);
/* oklch */ color: oklch(51.1% 0.199 274.9);
Tailwind
colors: {
  custom: {
    50: '#8d82e3',
    500: '#4b51d5',
    950: '#000000',
  },
}
SCSS
$custom: #4b51d5;
$custom-light: #8d82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51d5",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 237.391,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51132,
    "c": 0.1987,
    "h": 274.9
  },
  "luminance": 0.12185
}

Semantic roles & 50–950 ramp

primary
#4B51D5
secondary
#DAD8A2
accent
#DE43E5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #4B51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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