#4F40D1#4F40D1

#4F40D1 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.4% C 0.212 H 279.5°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#4F40D1
RGBrgb(79, 64, 209)
HSLhsl(246, 61%, 54%)
HSVhsv(246, 69%, 82%)
CMYKcmyk(62.2%, 69.4%, 0%, 18%)
CIE-LABlab(37.72, 47.73, -72.57)
CIE-LCHlch(37.72, 86.86, 303.33°)
OKLaboklab(48.35% 0.0352 -0.2093)
OKLCHoklch(48.35% 0.212 279.5)
XYZxyz(16.5628, 9.9312, 61.3534)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40D1 #C2D140
analogous
#4079D1 #4F40D1 #9740D1
triadic
#4F40D1 #D14F40 #40D14F
tetradic
#4F40D1 #D14079 #C2D140 #40D197
square
#4F40D1 #D14079 #C2D140 #40D197
split-complementary
#4F40D1 #D19740 #79D140
monochromatic
#271D79 #3729AB #4F40D1 #7C71DD #AAA3E9

Accessibility & contrast

On white

7.03
#4F40D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4F40D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40D1
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40D1#FFFFFF#000000##FFFFFF
##4F40D11.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0053CE
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4f40d1;
/* rgb */ color: rgb(79, 64, 209);
/* oklch */ color: oklch(48.4% 0.212 279.5);
Tailwind
colors: {
  custom: {
    50: '#8f77e0',
    500: '#4f40d1',
    950: '#000000',
  },
}
SCSS
$custom: #4f40d1;
$custom-light: #8f77e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40d1",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 246.207,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48352,
    "c": 0.21224,
    "h": 279.5
  },
  "luminance": 0.09933
}

Semantic roles & 50–950 ramp

primary
#4F40D1
secondary
#CFD597
accent
#E444D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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