#4F58D5#4F58D5

#4F58D5 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.6% C 0.189 H 274.7°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#4F58D5
RGBrgb(79, 88, 213)
HSLhsl(236, 61%, 57%)
HSVhsv(236, 63%, 84%)
CMYKcmyk(62.9%, 58.7%, 0%, 16.5%)
CIE-LABlab(43.43, 34.77, -65.55)
CIE-LCHlch(43.43, 74.20, 297.94°)
OKLaboklab(52.61% 0.0155 -0.1886)
OKLCHoklch(52.61% 0.189 274.7)
XYZxyz(18.7205, 13.4442, 64.5464)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F58D5 #D5CC4F
analogous
#4F9BD5 #4F58D5 #894FD5
triadic
#4F58D5 #D54F58 #58D54F
tetradic
#4F58D5 #D54F9B #D5CC4F #4FD589
square
#4F58D5 #D54F9B #D5CC4F #4FD589
split-complementary
#4F58D5 #D5894F #9BD54F
monochromatic
#212889 #2C36BA #4F58D5 #8087E1 #B2B6ED

Accessibility & contrast

On white

5.69
#4F58D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#4F58D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F58D5
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F58D5#FFFFFF#000000##FFFFFF
##4F58D51.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#0061D3
Tritanopia (blue-blind)
#00778E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4f58d5;
/* rgb */ color: rgb(79, 88, 213);
/* oklch */ color: oklch(52.6% 0.189 274.7);
Tailwind
colors: {
  custom: {
    50: '#8e87e3',
    500: '#4f58d5',
    950: '#000000',
  },
}
SCSS
$custom: #4f58d5;
$custom-light: #8e87e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f58d5",
  "rgb": {
    "r": 79,
    "g": 88,
    "b": 213
  },
  "hsl": {
    "h": 235.97,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52614,
    "c": 0.18925,
    "h": 274.7
  },
  "luminance": 0.13446
}

Semantic roles & 50–950 ramp

primary
#4F58D5
secondary
#DBD7A5
accent
#DA43E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4F58D5

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

Preview Lab → · Contrast checker → · Palette generator →

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