#4F5FE1#4F5FE1

#4F5FE1 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.8% C 0.196 H 272.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4F5FE1
RGBrgb(79, 95, 225)
HSLhsl(233, 71%, 60%)
HSVhsv(233, 65%, 88%)
CMYKcmyk(64.9%, 57.8%, 0%, 11.8%)
CIE-LABlab(46.02, 34.49, -68.17)
CIE-LCHlch(46.02, 76.40, 296.84°)
OKLaboklab(54.82% 0.0096 -0.1962)
OKLCHoklch(54.82% 0.196 272.8)
XYZxyz(20.9027, 15.2811, 73.0676)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5FE1 #E1D14F
analogous
#4FA8E1 #4F5FE1 #884FE1
triadic
#4F5FE1 #E14F5F #5FE14F
tetradic
#4F5FE1 #E14FA8 #E1D14F #4FE188
square
#4F5FE1 #E14FA8 #E1D14F #4FE188
split-complementary
#4F5FE1 #E1884F #A8E14F
monochromatic
#1A299B #2336CF #4F5FE1 #838FEA #B8BEF3

Accessibility & contrast

On white

5.18
#4F5FE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#4F5FE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F5FE1
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5FE1#FFFFFF#000000##FFFFFF
##4F5FE11.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E5
Deuteranopia (green-blind)
#0067DE
Tritanopia (blue-blind)
#007F97
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f5fe1;
/* rgb */ color: rgb(79, 95, 225);
/* oklch */ color: oklch(54.8% 0.196 272.8);
Tailwind
colors: {
  custom: {
    50: '#908ceb',
    500: '#4f5fe1',
    950: '#000000',
  },
}
SCSS
$custom: #4f5fe1;
$custom-light: #908ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5fe1",
  "rgb": {
    "r": 79,
    "g": 95,
    "b": 225
  },
  "hsl": {
    "h": 233.425,
    "s": 70.874,
    "l": 59.608
  },
  "oklch": {
    "l": 0.54817,
    "c": 0.19648,
    "h": 272.8
  },
  "luminance": 0.15283
}

Semantic roles & 50–950 ramp

primary
#4F5FE1
secondary
#E2DCAA
accent
#DA3AEE
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #4F5FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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