#4F56B7#4F56B7

#4F56B7 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.0% C 0.151 H 276.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#4F56B7
RGBrgb(79, 86, 183)
HSLhsl(236, 42%, 51%)
HSVhsv(236, 57%, 72%)
CMYKcmyk(56.8%, 53%, 0%, 28.2%)
CIE-LABlab(40.79, 25.98, -52.43)
CIE-LCHlch(40.79, 58.52, 296.36°)
OKLaboklab(49.98% 0.0167 -0.15)
OKLCHoklch(49.98% 0.151 276.4)
XYZxyz(15.0967, 11.7357, 46.2602)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F56B7 #B7B04F
analogous
#4F8AB7 #4F56B7 #7C4FB7
triadic
#4F56B7 #B74F56 #56B74F
tetradic
#4F56B7 #B74F8A #B7B04F #4FB77C
square
#4F56B7 #B74F8A #B7B04F #4FB77C
split-complementary
#4F56B7 #B77C4F #8AB74F
monochromatic
#292C63 #3A408F #4F56B7 #7A80C9 #A6A9DB

Accessibility & contrast

On white

6.27
#4F56B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4F56B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F56B7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F56B7#FFFFFF#000000##FFFFFF
##4F56B71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BA
Deuteranopia (green-blind)
#035CB5
Tritanopia (blue-blind)
#136C7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4f56b7;
/* rgb */ color: rgb(79, 86, 183);
/* oklch */ color: oklch(50.0% 0.151 276.4);
Tailwind
colors: {
  custom: {
    50: '#8985cd',
    500: '#4f56b7',
    950: '#000000',
  },
}
SCSS
$custom: #4f56b7;
$custom-light: #8985cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f56b7",
  "rgb": {
    "r": 79,
    "g": 86,
    "b": 183
  },
  "hsl": {
    "h": 235.962,
    "s": 41.935,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49976,
    "c": 0.15097,
    "h": 276.4
  },
  "luminance": 0.11737
}

Semantic roles & 50–950 ramp

primary
#4F56B7
secondary
#C8C59A
accent
#C956D2
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #4F56B7

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

Preview Lab → · Contrast checker → · Palette generator →

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