#4F40D5#4F40D5

#4F40D5 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.7% C 0.217 H 279.2°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#4F40D5
RGBrgb(79, 64, 213)
HSLhsl(246, 64%, 54%)
HSVhsv(246, 70%, 84%)
CMYKcmyk(62.9%, 70%, 0%, 16.5%)
CIE-LABlab(38.08, 48.97, -74.29)
CIE-LCHlch(38.08, 88.98, 303.39°)
OKLaboklab(48.72% 0.0345 -0.2143)
OKLCHoklch(48.72% 0.217 279.2)
XYZxyz(17.0642, 10.1318, 63.9943)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40D5 #C6D540
analogous
#407CD5 #4F40D5 #9940D5
triadic
#4F40D5 #D54F40 #40D54F
tetradic
#4F40D5 #D5407C #C6D540 #40D599
square
#4F40D5 #D5407C #C6D540 #40D599
split-complementary
#4F40D5 #D59940 #7CD540
monochromatic
#261C7F #3527B1 #4F40D5 #7D72E0 #ABA4EB

Accessibility & contrast

On white

6.94
#4F40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#4F40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40D5
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40D5#FFFFFF#000000##FFFFFF
##4F40D51.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#006886
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4f40d5;
/* rgb */ color: rgb(79, 64, 213);
/* oklch */ color: oklch(48.7% 0.217 279.2);
Tailwind
colors: {
  custom: {
    50: '#9077e3',
    500: '#4f40d5',
    950: '#000000',
  },
}
SCSS
$custom: #4f40d5;
$custom-light: #9077e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40d5",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 246.04,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48718,
    "c": 0.2171,
    "h": 279.2
  },
  "luminance": 0.10133
}

Semantic roles & 50–950 ramp

primary
#4F40D5
secondary
#D2D899
accent
#E741D6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4F40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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