#4F40D7#4F40D7

#4F40D7 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.9% C 0.220 H 279.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#4F40D7
RGBrgb(79, 64, 215)
HSLhsl(246, 65%, 55%)
HSVhsv(246, 70%, 84%)
CMYKcmyk(63.3%, 70.2%, 0%, 15.7%)
CIE-LABlab(38.26, 49.59, -75.14)
CIE-LCHlch(38.26, 90.03, 303.42°)
OKLaboklab(48.9% 0.0342 -0.2168)
OKLCHoklch(48.9% 0.22 279)
XYZxyz(17.3197, 10.2340, 65.3395)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40D7 #C8D740
analogous
#407DD7 #4F40D7 #9A40D7
triadic
#4F40D7 #D74F40 #40D74F
tetradic
#4F40D7 #D7407D #C8D740 #40D79A
square
#4F40D7 #D7407D #C8D740 #40D79A
split-complementary
#4F40D7 #D79A40 #7DD740
monochromatic
#251B81 #3426B4 #4F40D7 #7E73E2 #ACA5EC

Accessibility & contrast

On white

6.89
#4F40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4F40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40D7
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40D7#FFFFFF#000000##FFFFFF
##4F40D71.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0054D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4f40d7;
/* rgb */ color: rgb(79, 64, 215);
/* oklch */ color: oklch(48.9% 0.220 279.0);
Tailwind
colors: {
  custom: {
    50: '#9077e5',
    500: '#4f40d7',
    950: '#000000',
  },
}
SCSS
$custom: #4f40d7;
$custom-light: #9077e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40d7",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 245.96,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48903,
    "c": 0.21951,
    "h": 279
  },
  "luminance": 0.10235
}

Semantic roles & 50–950 ramp

primary
#4F40D7
secondary
#D3D99A
accent
#E83FD8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4F40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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