#4F51DA#4F51DA

#4F51DA is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.8% C 0.204 H 276.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#4F51DA
RGBrgb(79, 81, 218)
HSLhsl(239, 65%, 58%)
HSVhsv(239, 64%, 85%)
CMYKcmyk(63.8%, 62.8%, 0%, 14.5%)
CIE-LABlab(42.17, 40.70, -70.47)
CIE-LCHlch(42.17, 81.37, 300.01°)
OKLaboklab(51.81% 0.0212 -0.2031)
OKLCHoklch(51.81% 0.204 276)
XYZxyz(18.8176, 12.6075, 67.7579)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F51DA #DAD84F
analogous
#4F96DA #4F51DA #924FDA
triadic
#4F51DA #DA4F51 #51DA4F
tetradic
#4F51DA #DA4F96 #DAD84F #4FDA92
square
#4F51DA #DA4F96 #DAD84F #4FDA92
split-complementary
#4F51DA #DA924F #96DA4F
monochromatic
#1E2090 #292BC3 #4F51DA #8283E5 #B4B5EF

Accessibility & contrast

On white

5.96
#4F51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4F51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F51DA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F51DA#FFFFFF#000000##FFFFFF
##4F51DA1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005DD7
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4f51da;
/* rgb */ color: rgb(79, 81, 218);
/* oklch */ color: oklch(51.8% 0.204 276.0);
Tailwind
colors: {
  custom: {
    50: '#8f82e6',
    500: '#4f51da',
    950: '#000000',
  },
}
SCSS
$custom: #4f51da;
$custom-light: #8f82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f51da",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 239.137,
    "s": 65.258,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51808,
    "c": 0.20419,
    "h": 276
  },
  "luminance": 0.12609
}

Semantic roles & 50–950 ramp

primary
#4F51DA
secondary
#DEDDA7
accent
#E640E8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4F51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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