#4F40D4#4F40D4

#4F40D4 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.216 H 279.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#4F40D4
RGBrgb(79, 64, 212)
HSLhsl(246, 63%, 54%)
HSVhsv(246, 70%, 83%)
CMYKcmyk(62.7%, 69.8%, 0%, 16.9%)
CIE-LABlab(37.99, 48.66, -73.86)
CIE-LCHlch(37.99, 88.45, 303.38°)
OKLaboklab(48.63% 0.0347 -0.2131)
OKLCHoklch(48.63% 0.216 279.3)
XYZxyz(16.9377, 10.0812, 63.3279)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40D4 #C5D440
analogous
#407BD4 #4F40D4 #9940D4
triadic
#4F40D4 #D44F40 #40D44F
tetradic
#4F40D4 #D4407B #C5D440 #40D499
square
#4F40D4 #D4407B #C5D440 #40D499
split-complementary
#4F40D4 #D49940 #7BD440
monochromatic
#261C7D #3527AF #4F40D4 #7D72DF #ABA4EA

Accessibility & contrast

On white

6.96
#4F40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4F40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40D4
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40D4#FFFFFF#000000##FFFFFF
##4F40D41.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4f40d4;
/* rgb */ color: rgb(79, 64, 212);
/* oklch */ color: oklch(48.6% 0.216 279.3);
Tailwind
colors: {
  custom: {
    50: '#9077e2',
    500: '#4f40d4',
    950: '#000000',
  },
}
SCSS
$custom: #4f40d4;
$custom-light: #9077e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40d4",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 246.081,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48626,
    "c": 0.21589,
    "h": 279.3
  },
  "luminance": 0.10083
}

Semantic roles & 50–950 ramp

primary
#4F40D4
secondary
#D1D798
accent
#E642D6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4F40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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