#4B51EA#4B51EA

#4B51EA is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.9% C 0.225 H 273.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#4B51EA
RGBrgb(75, 81, 234)
HSLhsl(238, 79%, 61%)
HSVhsv(238, 68%, 92%)
CMYKcmyk(67.9%, 65.4%, 0%, 8.2%)
CIE-LABlab(43.24, 45.43, -77.81)
CIE-LCHlch(43.24, 90.10, 300.28°)
OKLaboklab(52.94% 0.0154 -0.2247)
OKLCHoklch(52.94% 0.225 273.9)
XYZxyz(20.6904, 13.3193, 79.3064)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51EA #EAE44B
analogous
#4BA0EA #4B51EA #944BEA
triadic
#4B51EA #EA4B51 #51EA4B
tetradic
#4B51EA #EA4BA0 #EAE44B #4BEA94
square
#4B51EA #EA4BA0 #EAE44B #4BEA94
split-complementary
#4B51EA #EA944B #A0EA4B
monochromatic
#1319A7 #1A21DE #4B51EA #8286F0 #B9BBF7

Accessibility & contrast

On white

5.73
#4B51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#4B51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B51EA
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51EA#FFFFFF#000000##FFFFFF
##4B51EA1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEF
Deuteranopia (green-blind)
#005FE7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4b51ea;
/* rgb */ color: rgb(75, 81, 234);
/* oklch */ color: oklch(52.9% 0.225 273.9);
Tailwind
colors: {
  custom: {
    50: '#9182f2',
    500: '#4b51ea',
    950: '#000000',
  },
}
SCSS
$custom: #4b51ea;
$custom-light: #9182f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51ea",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 237.736,
    "s": 79.104,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52935,
    "c": 0.22525,
    "h": 273.9
  },
  "luminance": 0.13321
}

Semantic roles & 50–950 ramp

primary
#4B51EA
secondary
#E7E4AA
accent
#D30ADB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4B51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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