#4F40E2#4F40E2

#4F40E2 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.9% C 0.233 H 278.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#4F40E2
RGBrgb(79, 64, 226)
HSLhsl(246, 74%, 57%)
HSVhsv(246, 72%, 89%)
CMYKcmyk(65%, 71.7%, 0%, 11.4%)
CIE-LABlab(39.27, 52.98, -79.78)
CIE-LCHlch(39.27, 95.76, 303.59°)
OKLaboklab(49.93% 0.0322 -0.2304)
OKLCHoklch(49.93% 0.233 278)
XYZxyz(18.7809, 10.8185, 73.0352)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40E2 #D3E240
analogous
#4082E2 #4F40E2 #A040E2
triadic
#4F40E2 #E24F40 #40E24F
tetradic
#4F40E2 #E24082 #D3E240 #40E2A0
square
#4F40E2 #E24082 #D3E240 #40E2A0
split-complementary
#4F40E2 #E2A040 #82E240
monochromatic
#221692 #2E1EC7 #4F40E2 #8075EA #B1AAF2

Accessibility & contrast

On white

6.64
#4F40E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#4F40E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40E2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40E2#FFFFFF#000000##FFFFFF
##4F40E21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0056DF
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4f40e2;
/* rgb */ color: rgb(79, 64, 226);
/* oklch */ color: oklch(49.9% 0.233 278.0);
Tailwind
colors: {
  custom: {
    50: '#9277ec',
    500: '#4f40e2',
    950: '#000000',
  },
}
SCSS
$custom: #4f40e2;
$custom-light: #9277ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40e2",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 245.556,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.49932,
    "c": 0.2326,
    "h": 278
  },
  "luminance": 0.1082
}

Semantic roles & 50–950 ramp

primary
#4F40E2
secondary
#DAE09E
accent
#F038DF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #4F40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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