#4F51DB#4F51DB

#4F51DB is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 51.9% C 0.205 H 275.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#4F51DB
RGBrgb(79, 81, 219)
HSLhsl(239, 66%, 58%)
HSVhsv(239, 64%, 86%)
CMYKcmyk(63.9%, 63%, 0%, 14.1%)
CIE-LABlab(42.25, 41.03, -70.90)
CIE-LCHlch(42.25, 81.92, 300.06°)
OKLaboklab(51.89% 0.0211 -0.2044)
OKLCHoklch(51.89% 0.205 275.9)
XYZxyz(18.9489, 12.6600, 68.4492)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F51DB #DBD94F
analogous
#4F97DB #4F51DB #934FDB
triadic
#4F51DB #DB4F51 #51DB4F
tetradic
#4F51DB #DB4F97 #DBD94F #4FDB93
square
#4F51DB #DB4F97 #DBD94F #4FDB93
split-complementary
#4F51DB #DB934F #97DB4F
monochromatic
#1E1F92 #282AC5 #4F51DB #8283E5 #B5B5F0

Accessibility & contrast

On white

5.94
#4F51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4F51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F51DB
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F51DB#FFFFFF#000000##FFFFFF
##4F51DB1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4f51db;
/* rgb */ color: rgb(79, 81, 219);
/* oklch */ color: oklch(51.9% 0.205 275.9);
Tailwind
colors: {
  custom: {
    50: '#9082e7',
    500: '#4f51db',
    950: '#000000',
  },
}
SCSS
$custom: #4f51db;
$custom-light: #9082e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f51db",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 239.143,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51892,
    "c": 0.20547,
    "h": 275.9
  },
  "luminance": 0.12662
}

Semantic roles & 50–950 ramp

primary
#4F51DB
secondary
#DFDEA7
accent
#E73FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4F51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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