#4D51FF#4D51FF

#4D51FF is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.9% C 0.250 H 273.5°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#4D51FF
RGBrgb(77, 81, 255)
HSLhsl(239, 100%, 65%)
HSVhsv(239, 70%, 100%)
CMYKcmyk(69.8%, 68.2%, 0%, 0%)
CIE-LABlab(45.19, 52.47, -86.38)
CIE-LCHlch(45.19, 101.06, 301.28°)
OKLaboklab(54.94% 0.0153 -0.2497)
OKLCHoklch(54.94% 0.25 273.5)
XYZxyz(24.0470, 14.6803, 96.1546)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51FF #FFFB4D
analogous
#4DAAFF #4D51FF #A24DFF
triadic
#4D51FF #FF4D51 #51FF4D
tetradic
#4D51FF #FF4DAA #FFFB4D #4DFFA2
square
#4D51FF #FF4DAA #FFFB4D #4DFFA2
split-complementary
#4D51FF #FFA24D #AAFF4D
monochromatic
#0005D2 #1015FF #4D51FF #8A8DFF #C7C9FF

Accessibility & contrast

On white

5.33
#4D51FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#4D51FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51FF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51FF#FFFFFF#000000##FFFFFF
##4D51FF1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073FF
Deuteranopia (green-blind)
#0063FC
Tritanopia (blue-blind)
#0081A2
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4d51ff;
/* rgb */ color: rgb(77, 81, 255);
/* oklch */ color: oklch(54.9% 0.250 273.5);
Tailwind
colors: {
  custom: {
    50: '#9683ff',
    500: '#4d51ff',
    950: '#000000',
  },
}
SCSS
$custom: #4d51ff;
$custom-light: #9683ff;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51ff",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 238.652,
    "s": 100,
    "l": 65.098
  },
  "oklch": {
    "l": 0.54938,
    "c": 0.2502,
    "h": 273.5
  },
  "luminance": 0.14683
}

Semantic roles & 50–950 ramp

primary
#4D51FF
secondary
#F2F1B6
accent
#E000E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #4D51FF

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

Preview Lab → · Contrast checker → · Palette generator →

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