#4B51CD#4B51CD

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

Color values

HEX#4B51CD
RGBrgb(75, 81, 205)
HSLhsl(237, 57%, 55%)
HSVhsv(237, 63%, 80%)
CMYKcmyk(63.4%, 60.5%, 0%, 19.6%)
CIE-LABlab(40.88, 35.78, -65.11)
CIE-LCHlch(40.88, 74.30, 298.79°)
OKLaboklab(50.47% 0.0172 -0.1875)
OKLCHoklch(50.47% 0.188 275.3)
XYZxyz(16.8599, 11.7871, 59.1324)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51CD #CDC74B
analogous
#4B92CD #4B51CD #864BCD
triadic
#4B51CD #CD4B51 #51CD4B
tetradic
#4B51CD #CD4B92 #CDC74B #4BCD86
square
#4B51CD #CD4B92 #CDC74B #4BCD86
split-complementary
#4B51CD #CD864B #92CD4B
monochromatic
#22267B #3035AB #4B51CD #7B7FDA #ABAEE8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B51CD#FFFFFF#000000##FFFFFF
##4B51CD1.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)
#0066D1
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4b51cd;
/* rgb */ color: rgb(75, 81, 205);
/* oklch */ color: oklch(50.5% 0.188 275.3);
Tailwind
colors: {
  custom: {
    50: '#8b82dd',
    500: '#4b51cd',
    950: '#000000',
  },
}
SCSS
$custom: #4b51cd;
$custom-light: #8b82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51cd",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 237.231,
    "s": 56.522,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50471,
    "c": 0.18827,
    "h": 275.3
  },
  "luminance": 0.11788
}

Semantic roles & 50–950 ramp

primary
#4B51CD
secondary
#D5D39F
accent
#D948E0
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4B51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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