#4B51CE#4B51CE

#4B51CE is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.6% C 0.190 H 275.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4B51CE
RGBrgb(75, 81, 206)
HSLhsl(237, 57%, 55%)
HSVhsv(237, 64%, 81%)
CMYKcmyk(63.6%, 60.7%, 0%, 19.2%)
CIE-LABlab(40.95, 36.12, -65.56)
CIE-LCHlch(40.95, 74.85, 298.85°)
OKLaboklab(50.55% 0.0172 -0.1888)
OKLCHoklch(50.55% 0.19 275.2)
XYZxyz(16.9810, 11.8355, 59.7702)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51CE #CEC84B
analogous
#4B92CE #4B51CE #874BCE
triadic
#4B51CE #CE4B51 #51CE4B
tetradic
#4B51CE #CE4B92 #CEC84B #4BCE87
square
#4B51CE #CE4B92 #CEC84B #4BCE87
split-complementary
#4B51CE #CE874B #92CE4B
monochromatic
#22267D #2F35AD #4B51CE #7B80DB #ABAEE8

Accessibility & contrast

On white

6.24
#4B51CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4B51CE
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51CE#FFFFFF#000000##FFFFFF
##4B51CE1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4b51ce;
/* rgb */ color: rgb(75, 81, 206);
/* oklch */ color: oklch(50.6% 0.190 275.2);
Tailwind
colors: {
  custom: {
    50: '#8b82de',
    500: '#4b51ce',
    950: '#000000',
  },
}
SCSS
$custom: #4b51ce;
$custom-light: #8b82de;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51ce",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 237.252,
    "s": 57.205,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50553,
    "c": 0.18958,
    "h": 275.2
  },
  "luminance": 0.11837
}

Semantic roles & 50–950 ramp

primary
#4B51CE
secondary
#D6D39F
accent
#D947E0
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4B51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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