#4F40FF#4F40FF

#4F40FF is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 52.7% C 0.266 H 275.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4F40FF
RGBrgb(79, 64, 255)
HSLhsl(245, 100%, 63%)
HSVhsv(245, 75%, 100%)
CMYKcmyk(69%, 74.9%, 0%, 0%)
CIE-LABlab(42.07, 61.73, -91.52)
CIE-LCHlch(42.07, 110.39, 304.00°)
OKLaboklab(52.75% 0.0264 -0.2646)
OKLCHoklch(52.75% 0.266 275.7)
XYZxyz(23.1019, 12.5469, 95.7927)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40FF #F0FF40
analogous
#4091FF #4F40FF #AE40FF
triadic
#4F40FF #FF4F40 #40FF4F
tetradic
#4F40FF #FF4091 #F0FF40 #40FFAE
square
#4F40FF #FF4091 #F0FF40 #40FFAE
split-complementary
#4F40FF #FFAE40 #91FF40
monochromatic
#0F00C5 #1703FF #4F40FF #877DFF #C0BAFF

Accessibility & contrast

On white

5.98
#4F40FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4F40FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40FF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40FF#FFFFFF#000000##FFFFFF
##4F40FF1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BFF
Deuteranopia (green-blind)
#005BFC
Tritanopia (blue-blind)
#00789E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4f40ff;
/* rgb */ color: rgb(79, 64, 255);
/* oklch */ color: oklch(52.7% 0.266 275.7);
Tailwind
colors: {
  custom: {
    50: '#9878ff',
    500: '#4f40ff',
    950: '#000000',
  },
}
SCSS
$custom: #4f40ff;
$custom-light: #9878ff;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40ff",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 244.712,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.52749,
    "c": 0.26589,
    "h": 275.7
  },
  "luminance": 0.12549
}

Semantic roles & 50–950 ramp

primary
#4F40FF
secondary
#EBF0AB
accent
#E600D3
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100918
muted
#7F7B86

Preview Lab

Preview with #4F40FF

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

Preview Lab → · Contrast checker → · Palette generator →

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