#4F51CB#4F51CB

#4F51CB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.185 H 276.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#4F51CB
RGBrgb(79, 81, 203)
HSLhsl(239, 54%, 55%)
HSVhsv(239, 61%, 80%)
CMYKcmyk(61.1%, 60.1%, 0%, 20.4%)
CIE-LABlab(40.99, 35.76, -63.76)
CIE-LCHlch(40.99, 73.10, 299.28°)
OKLaboklab(50.58% 0.0219 -0.1834)
OKLCHoklch(50.58% 0.185 276.8)
XYZxyz(16.9429, 11.8576, 57.8842)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F51CB #CBC94F
analogous
#4F8FCB #4F51CB #8B4FCB
triadic
#4F51CB #CB4F51 #51CB4F
tetradic
#4F51CB #CB4F8F #CBC94F #4FCB8B
square
#4F51CB #CB4F8F #CBC94F #4FCB8B
split-complementary
#4F51CB #CB8B4F #8FCB4F
monochromatic
#24267B #3234AA #4F51CB #7E80D9 #ADAEE7

Accessibility & contrast

On white

6.23
#4F51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4F51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F51CB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F51CB#FFFFFF#000000##FFFFFF
##4F51CB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4f51cb;
/* rgb */ color: rgb(79, 81, 203);
/* oklch */ color: oklch(50.6% 0.185 276.8);
Tailwind
colors: {
  custom: {
    50: '#8d82dc',
    500: '#4f51cb',
    950: '#000000',
  },
}
SCSS
$custom: #4f51cb;
$custom-light: #8d82dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f51cb",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 239.032,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50576,
    "c": 0.18471,
    "h": 276.8
  },
  "luminance": 0.11859
}

Semantic roles & 50–950 ramp

primary
#4F51CB
secondary
#D5D4A1
accent
#DB4ADE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4F51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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