#4F56CB#4F56CB

#4F56CB is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.5% C 0.178 H 275.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#4F56CB
RGBrgb(79, 86, 203)
HSLhsl(237, 54%, 55%)
HSVhsv(237, 61%, 80%)
CMYKcmyk(61.1%, 57.6%, 0%, 20.4%)
CIE-LABlab(42.20, 32.66, -61.80)
CIE-LCHlch(42.20, 69.90, 297.86°)
OKLaboklab(51.47% 0.0174 -0.1776)
OKLCHoklch(51.47% 0.178 275.6)
XYZxyz(17.3282, 12.6283, 58.0127)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F56CB #CBC44F
analogous
#4F94CB #4F56CB #864FCB
triadic
#4F56CB #CB4F56 #56CB4F
tetradic
#4F56CB #CB4F94 #CBC44F #4FCB86
square
#4F56CB #CB4F94 #CBC44F #4FCB86
split-complementary
#4F56CB #CB864F #94CB4F
monochromatic
#24297B #3239AA #4F56CB #7E83D9 #ADB1E7

Accessibility & contrast

On white

5.96
#4F56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4F56CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F56CB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F56CB#FFFFFF#000000##FFFFFF
##4F56CB1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4f56cb;
/* rgb */ color: rgb(79, 86, 203);
/* oklch */ color: oklch(51.5% 0.178 275.6);
Tailwind
colors: {
  custom: {
    50: '#8c85dc',
    500: '#4f56cb',
    950: '#000000',
  },
}
SCSS
$custom: #4f56cb;
$custom-light: #8c85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f56cb",
  "rgb": {
    "r": 79,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 236.613,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5147,
    "c": 0.17844,
    "h": 275.6
  },
  "luminance": 0.1263
}

Semantic roles & 50–950 ramp

primary
#4F56CB
secondary
#D5D2A1
accent
#D54ADE
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4F56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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