#4F40D3#4F40D3

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

Color values

HEX#4F40D3
RGBrgb(79, 64, 211)
HSLhsl(246, 63%, 54%)
HSVhsv(246, 70%, 83%)
CMYKcmyk(62.6%, 69.7%, 0%, 17.3%)
CIE-LABlab(37.90, 48.35, -73.43)
CIE-LCHlch(37.90, 87.92, 303.36°)
OKLaboklab(48.53% 0.0349 -0.2118)
OKLCHoklch(48.53% 0.215 279.4)
XYZxyz(16.8120, 10.0309, 62.6656)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40D3 #C4D340
analogous
#407BD3 #4F40D3 #9840D3
triadic
#4F40D3 #D34F40 #40D34F
tetradic
#4F40D3 #D3407B #C4D340 #40D398
square
#4F40D3 #D3407B #C4D340 #40D398
split-complementary
#4F40D3 #D39840 #7BD340
monochromatic
#261D7C #3628AE #4F40D3 #7D72DE #ABA3EA

Accessibility & contrast

On white

6.99
#4F40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4F40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40D3
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40D3#FFFFFF#000000##FFFFFF
##4F40D31.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0053D0
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4f40d3;
/* rgb */ color: rgb(79, 64, 211);
/* oklch */ color: oklch(48.5% 0.215 279.4);
Tailwind
colors: {
  custom: {
    50: '#8f77e2',
    500: '#4f40d3',
    950: '#000000',
  },
}
SCSS
$custom: #4f40d3;
$custom-light: #8f77e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40d3",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 246.122,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48534,
    "c": 0.21467,
    "h": 279.4
  },
  "luminance": 0.10032
}

Semantic roles & 50–950 ramp

primary
#4F40D3
secondary
#D0D798
accent
#E642D5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #4F40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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