#4B51DC#4B51DC

#4B51DC is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.7% C 0.208 H 274.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4B51DC
RGBrgb(75, 81, 220)
HSLhsl(238, 67%, 58%)
HSVhsv(238, 66%, 86%)
CMYKcmyk(65.9%, 63.2%, 0%, 13.7%)
CIE-LABlab(42.07, 40.80, -71.77)
CIE-LCHlch(42.07, 82.56, 299.62°)
OKLaboklab(51.72% 0.0165 -0.207)
OKLCHoklch(51.72% 0.208 274.6)
XYZxyz(18.7581, 12.5464, 69.1294)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51DC #DCD64B
analogous
#4B9ADC #4B51DC #8D4BDC
triadic
#4B51DC #DC4B51 #51DC4B
tetradic
#4B51DC #DC4B9A #DCD64B #4BDC8D
square
#4B51DC #DC4B9A #DCD64B #4BDC8D
split-complementary
#4B51DC #DC8D4B #9ADC4B
monochromatic
#1C2191 #262DC4 #4B51DC #7E83E6 #B1B4F0

Accessibility & contrast

On white

5.98
#4B51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4B51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B51DC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51DC#FFFFFF#000000##FFFFFF
##4B51DC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#005DD9
Tritanopia (blue-blind)
#00758F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4b51dc;
/* rgb */ color: rgb(75, 81, 220);
/* oklch */ color: oklch(51.7% 0.208 274.6);
Tailwind
colors: {
  custom: {
    50: '#8e82e8',
    500: '#4b51dc',
    950: '#000000',
  },
}
SCSS
$custom: #4b51dc;
$custom-light: #8e82e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51dc",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 237.517,
    "s": 67.442,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51722,
    "c": 0.20769,
    "h": 274.6
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#4B51DC
secondary
#DEDCA4
accent
#E33DEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4B51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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