#4F71F2#4F71F2

#4F71F2 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.5% C 0.197 H 268.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#4F71F2
RGBrgb(79, 113, 242)
HSLhsl(227, 86%, 63%)
HSVhsv(227, 67%, 95%)
CMYKcmyk(67.4%, 53.3%, 0%, 5.1%)
CIE-LABlab(51.70, 29.18, -68.50)
CIE-LCHlch(51.70, 74.46, 293.07°)
OKLaboklab(59.45% -0.0048 -0.197)
OKLCHoklch(59.45% 0.197 268.6)
XYZxyz(25.1511, 19.8809, 86.4991)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F71F2 #F2D04F
analogous
#4FC2F2 #4F71F2 #7F4FF2
triadic
#4F71F2 #F24F71 #71F24F
tetradic
#4F71F2 #F24FC2 #F2D04F #4FF27F
square
#4F71F2 #F24FC2 #F2D04F #4FF27F
split-complementary
#4F71F2 #F27F4F #C2F24F
monochromatic
#0E31B9 #1643EE #4F71F2 #889FF6 #C1CDFA

Accessibility & contrast

On white

4.22
#4F71F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#4F71F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F71F2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F71F2#FFFFFF#000000##000000
##4F71F21.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C83F7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#0090A7
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4f71f2;
/* rgb */ color: rgb(79, 113, 242);
/* oklch */ color: oklch(59.5% 0.197 268.6);
Tailwind
colors: {
  custom: {
    50: '#9299f7',
    500: '#4f71f2',
    950: '#000000',
  },
}
SCSS
$custom: #4f71f2;
$custom-light: #9299f7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f71f2",
  "rgb": {
    "r": 79,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 227.485,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59453,
    "c": 0.19706,
    "h": 268.6
  },
  "luminance": 0.19883
}

Semantic roles & 50–950 ramp

primary
#4F71F2
secondary
#ECDFB1
accent
#B403E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #4F71F2

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

Preview Lab → · Contrast checker → · Palette generator →

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