#4F40D2#4F40D2

#4F40D2 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.213 H 279.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#4F40D2
RGBrgb(79, 64, 210)
HSLhsl(246, 62%, 54%)
HSVhsv(246, 70%, 82%)
CMYKcmyk(62.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(37.81, 48.04, -73.00)
CIE-LCHlch(37.81, 87.39, 303.35°)
OKLaboklab(48.44% 0.035 -0.2106)
OKLCHoklch(48.44% 0.213 279.4)
XYZxyz(16.6870, 9.9809, 62.0074)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40D2 #C3D240
analogous
#407AD2 #4F40D2 #9840D2
triadic
#4F40D2 #D24F40 #40D24F
tetradic
#4F40D2 #D2407A #C3D240 #40D298
square
#4F40D2 #D2407A #C3D240 #40D298
split-complementary
#4F40D2 #D29840 #7AD240
monochromatic
#271D7B #3629AC #4F40D2 #7D72DE #AAA3E9

Accessibility & contrast

On white

7.01
#4F40D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4F40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40D2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40D2#FFFFFF#000000##FFFFFF
##4F40D21.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f40d2;
/* rgb */ color: rgb(79, 64, 210);
/* oklch */ color: oklch(48.4% 0.213 279.4);
Tailwind
colors: {
  custom: {
    50: '#8f77e1',
    500: '#4f40d2',
    950: '#000000',
  },
}
SCSS
$custom: #4f40d2;
$custom-light: #8f77e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40d2",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 246.164,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48443,
    "c": 0.21346,
    "h": 279.4
  },
  "luminance": 0.09982
}

Semantic roles & 50–950 ramp

primary
#4F40D2
secondary
#D0D698
accent
#E543D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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