#4F46E1#4F46E1

#4F46E1 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.7% C 0.225 H 277.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#4F46E1
RGBrgb(79, 70, 225)
HSLhsl(243, 72%, 58%)
HSVhsv(243, 69%, 88%)
CMYKcmyk(64.9%, 68.9%, 0%, 11.8%)
CIE-LABlab(40.37, 49.37, -77.40)
CIE-LCHlch(40.37, 91.80, 302.53°)
OKLaboklab(50.69% 0.0285 -0.2234)
OKLCHoklch(50.69% 0.225 277.3)
XYZxyz(19.0008, 11.4772, 72.4336)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F46E1 #D8E146
analogous
#468AE1 #4F46E1 #9D46E1
triadic
#4F46E1 #E14F46 #46E14F
tetradic
#4F46E1 #E1468A #D8E146 #46E19D
square
#4F46E1 #E1468A #D8E146 #46E19D
split-complementary
#4F46E1 #E19D46 #8AE146
monochromatic
#1F1895 #2A21C9 #4F46E1 #817BEA #B3AFF2

Accessibility & contrast

On white

6.37
#4F46E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4F46E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F46E1
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F46E1#FFFFFF#000000##FFFFFF
##4F46E11.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#0059DE
Tritanopia (blue-blind)
#00708E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4f46e1;
/* rgb */ color: rgb(79, 70, 225);
/* oklch */ color: oklch(50.7% 0.225 277.3);
Tailwind
colors: {
  custom: {
    50: '#927bec',
    500: '#4f46e1',
    950: '#000000',
  },
}
SCSS
$custom: #4f46e1;
$custom-light: #927bec;
$custom-dark: #000000;
JSON
{
  "hex": "#4f46e1",
  "rgb": {
    "r": 79,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 243.484,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5069,
    "c": 0.22524,
    "h": 277.3
  },
  "luminance": 0.11479
}

Semantic roles & 50–950 ramp

primary
#4F46E1
secondary
#DDE0A2
accent
#EF39E4
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4F46E1

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

Preview Lab → · Contrast checker → · Palette generator →

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