#4B51D8#4B51D8

#4B51D8 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.4% C 0.203 H 274.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#4B51D8
RGBrgb(75, 81, 216)
HSLhsl(237, 64%, 57%)
HSVhsv(237, 65%, 85%)
CMYKcmyk(65.3%, 62.5%, 0%, 15.3%)
CIE-LABlab(41.75, 39.47, -70.02)
CIE-LCHlch(41.75, 80.37, 299.41°)
OKLaboklab(51.38% 0.0167 -0.2019)
OKLCHoklch(51.38% 0.203 274.7)
XYZxyz(18.2347, 12.3370, 66.3728)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51D8 #D8D24B
analogous
#4B98D8 #4B51D8 #8C4BD8
triadic
#4B51D8 #D84B51 #51D84B
tetradic
#4B51D8 #D84B98 #D8D24B #4BD88C
square
#4B51D8 #D84B98 #D8D24B #4BD88C
split-complementary
#4B51D8 #D88C4B #98D84B
monochromatic
#1E238B #292FBD #4B51D8 #7D82E3 #B0B2EE

Accessibility & contrast

On white

6.06
#4B51D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4B51D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B51D8
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51D8#FFFFFF#000000##FFFFFF
##4B51D81.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4b51d8;
/* rgb */ color: rgb(75, 81, 216);
/* oklch */ color: oklch(51.4% 0.203 274.7);
Tailwind
colors: {
  custom: {
    50: '#8d82e5',
    500: '#4b51d8',
    950: '#000000',
  },
}
SCSS
$custom: #4b51d8;
$custom-light: #8d82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51d8",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 237.447,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51383,
    "c": 0.20257,
    "h": 274.7
  },
  "luminance": 0.12339
}

Semantic roles & 50–950 ramp

primary
#4B51D8
secondary
#DCDAA3
accent
#E040E7
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4B51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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