#4F46A2#4F46A2

#4F46A2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.144 H 283.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#4F46A2
RGBrgb(79, 70, 162)
HSLhsl(246, 40%, 45%)
HSVhsv(246, 57%, 64%)
CMYKcmyk(51.2%, 56.8%, 0%, 36.5%)
CIE-LABlab(35.30, 29.24, -48.83)
CIE-LCHlch(35.30, 56.92, 300.91°)
OKLaboklab(45.42% 0.0335 -0.1396)
OKLCHoklch(45.42% 0.144 283.5)
XYZxyz(11.9342, 8.6506, 35.2163)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F46A2 #99A246
analogous
#466BA2 #4F46A2 #7D46A2
triadic
#4F46A2 #A24F46 #46A24F
tetradic
#4F46A2 #A2466B #99A246 #46A27D
square
#4F46A2 #A2466B #99A246 #46A27D
split-complementary
#4F46A2 #A27D46 #6BA246
monochromatic
#25214D #3A3477 #4F46A2 #7068BE #9892D0

Accessibility & contrast

On white

7.69
#4F46A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4F46A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F46A2
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F46A2#FFFFFF#000000##FFFFFF
##4F46A21.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0856A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#2F5B6D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4f46a2;
/* rgb */ color: rgb(79, 70, 162);
/* oklch */ color: oklch(45.4% 0.144 283.5);
Tailwind
colors: {
  custom: {
    50: '#8779be',
    500: '#4f46a2',
    950: '#000000',
  },
}
SCSS
$custom: #4f46a2;
$custom-light: #8779be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f46a2",
  "rgb": {
    "r": 79,
    "g": 70,
    "b": 162
  },
  "hsl": {
    "h": 245.87,
    "s": 39.655,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4542,
    "c": 0.14354,
    "h": 283.5
  },
  "luminance": 0.08651
}

Semantic roles & 50–950 ramp

primary
#4F46A2
secondary
#B7BC88
accent
#D058C4
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #4F46A2

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

Preview Lab → · Contrast checker → · Palette generator →

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