#4F40D9#4F40D9

#4F40D9 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.1% C 0.222 H 278.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#4F40D9
RGBrgb(79, 64, 217)
HSLhsl(246, 67%, 55%)
HSVhsv(246, 71%, 85%)
CMYKcmyk(63.6%, 70.5%, 0%, 14.9%)
CIE-LABlab(38.44, 50.21, -75.99)
CIE-LCHlch(38.44, 91.08, 303.45°)
OKLaboklab(49.09% 0.0339 -0.2193)
OKLCHoklch(49.09% 0.222 278.8)
XYZxyz(17.5782, 10.3374, 66.7012)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40D9 #CAD940
analogous
#407ED9 #4F40D9 #9B40D9
triadic
#4F40D9 #D94F40 #40D94F
tetradic
#4F40D9 #D9407E #CAD940 #40D99B
square
#4F40D9 #D9407E #CAD940 #40D99B
split-complementary
#4F40D9 #D99B40 #7ED940
monochromatic
#251A84 #3324B7 #4F40D9 #7E73E3 #ADA6ED

Accessibility & contrast

On white

6.85
#4F40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4F40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40D9
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40D9#FFFFFF#000000##FFFFFF
##4F40D91.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0054D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4f40d9;
/* rgb */ color: rgb(79, 64, 217);
/* oklch */ color: oklch(49.1% 0.222 278.8);
Tailwind
colors: {
  custom: {
    50: '#9077e6',
    500: '#4f40d9',
    950: '#000000',
  },
}
SCSS
$custom: #4f40d9;
$custom-light: #9077e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40d9",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 245.882,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49088,
    "c": 0.22191,
    "h": 278.8
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#4F40D9
secondary
#D4DA9A
accent
#EA3ED9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4F40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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