#4F46E5#4F46E5

#4F46E5 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.1% C 0.230 H 277.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4F46E5
RGBrgb(79, 70, 229)
HSLhsl(243, 75%, 59%)
HSVhsv(243, 69%, 90%)
CMYKcmyk(65.5%, 69.4%, 0%, 10.2%)
CIE-LABlab(40.73, 50.63, -79.08)
CIE-LCHlch(40.73, 93.90, 302.63°)
OKLaboklab(51.06% 0.0279 -0.2284)
OKLCHoklch(51.06% 0.23 277)
XYZxyz(19.5529, 11.6980, 75.3411)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F46E5 #DCE546
analogous
#468CE5 #4F46E5 #9E46E5
triadic
#4F46E5 #E54F46 #46E54F
tetradic
#4F46E5 #E5468C #DCE546 #46E59E
square
#4F46E5 #E5468C #DCE546 #46E59E
split-complementary
#4F46E5 #E59E46 #8CE546
monochromatic
#1D169B #271DD0 #4F46E5 #827CED #B5B1F4

Accessibility & contrast

On white

6.29
#4F46E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4F46E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F46E5
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F46E5#FFFFFF#000000##FFFFFF
##4F46E51.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EA
Deuteranopia (green-blind)
#0059E2
Tritanopia (blue-blind)
#007190
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4f46e5;
/* rgb */ color: rgb(79, 70, 229);
/* oklch */ color: oklch(51.1% 0.230 277.0);
Tailwind
colors: {
  custom: {
    50: '#927bee',
    500: '#4f46e5',
    950: '#000000',
  },
}
SCSS
$custom: #4f46e5;
$custom-light: #927bee;
$custom-dark: #000000;
JSON
{
  "hex": "#4f46e5",
  "rgb": {
    "r": 79,
    "g": 70,
    "b": 229
  },
  "hsl": {
    "h": 243.396,
    "s": 75.355,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51057,
    "c": 0.23006,
    "h": 277
  },
  "luminance": 0.117
}

Semantic roles & 50–950 ramp

primary
#4F46E5
secondary
#DFE3A4
accent
#F236E7
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #4F46E5

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

Preview Lab → · Contrast checker → · Palette generator →

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