#4B51E8#4B51E8

#4B51E8 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.8% C 0.223 H 274.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#4B51E8
RGBrgb(75, 81, 232)
HSLhsl(238, 77%, 60%)
HSVhsv(238, 68%, 91%)
CMYKcmyk(67.7%, 65.1%, 0%, 9%)
CIE-LABlab(43.07, 44.77, -76.96)
CIE-LCHlch(43.07, 89.03, 300.19°)
OKLaboklab(52.76% 0.0156 -0.2222)
OKLCHoklch(52.76% 0.223 274)
XYZxyz(20.4047, 13.2050, 77.8018)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51E8 #E8E24B
analogous
#4B9FE8 #4B51E8 #934BE8
triadic
#4B51E8 #E84B51 #51E84B
tetradic
#4B51E8 #E84B9F #E8E24B #4BE893
square
#4B51E8 #E84B9F #E8E24B #4BE893
split-complementary
#4B51E8 #E8934B #9FE84B
monochromatic
#151AA4 #1C23DA #4B51E8 #8185EF #B8BAF6

Accessibility & contrast

On white

5.77
#4B51E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#4B51E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B51E8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51E8#FFFFFF#000000##FFFFFF
##4B51E81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#005FE5
Tritanopia (blue-blind)
#007995
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4b51e8;
/* rgb */ color: rgb(75, 81, 232);
/* oklch */ color: oklch(52.8% 0.223 274.0);
Tailwind
colors: {
  custom: {
    50: '#9082f0',
    500: '#4b51e8',
    950: '#000000',
  },
}
SCSS
$custom: #4b51e8;
$custom-light: #9082f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51e8",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 237.707,
    "s": 77.34,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52759,
    "c": 0.22276,
    "h": 274
  },
  "luminance": 0.13207
}

Semantic roles & 50–950 ramp

primary
#4B51E8
secondary
#E6E3A9
accent
#D20CDA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4B51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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