#4F51CA#4F51CA

#4F51CA is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.183 H 276.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#4F51CA
RGBrgb(79, 81, 202)
HSLhsl(239, 54%, 55%)
HSVhsv(239, 61%, 79%)
CMYKcmyk(60.9%, 59.9%, 0%, 20.8%)
CIE-LABlab(40.91, 35.42, -63.31)
CIE-LCHlch(40.91, 72.54, 299.23°)
OKLaboklab(50.5% 0.022 -0.1821)
OKLCHoklch(50.5% 0.183 276.9)
XYZxyz(16.8241, 11.8101, 57.2587)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F51CA #CAC84F
analogous
#4F8FCA #4F51CA #8A4FCA
triadic
#4F51CA #CA4F51 #51CA4F
tetradic
#4F51CA #CA4F8F #CAC84F #4FCA8A
square
#4F51CA #CA4F8F #CAC84F #4FCA8A
split-complementary
#4F51CA #CA8A4F #8FCA4F
monochromatic
#25267A #3335A9 #4F51CA #7E80D8 #ADAEE6

Accessibility & contrast

On white

6.25
#4F51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4F51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F51CA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F51CA#FFFFFF#000000##FFFFFF
##4F51CA1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4f51ca;
/* rgb */ color: rgb(79, 81, 202);
/* oklch */ color: oklch(50.5% 0.183 276.9);
Tailwind
colors: {
  custom: {
    50: '#8d82db',
    500: '#4f51ca',
    950: '#000000',
  },
}
SCSS
$custom: #4f51ca;
$custom-light: #8d82db;
$custom-dark: #000000;
JSON
{
  "hex": "#4f51ca",
  "rgb": {
    "r": 79,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 239.024,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50496,
    "c": 0.18339,
    "h": 276.9
  },
  "luminance": 0.11811
}

Semantic roles & 50–950 ramp

primary
#4F51CA
secondary
#D4D3A1
accent
#DB4BDD
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4F51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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