#4B51BF#4B51BF

#4B51BF is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.4% C 0.170 H 275.9°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#4B51BF
RGBrgb(75, 81, 191)
HSLhsl(237, 48%, 52%)
HSVhsv(237, 61%, 75%)
CMYKcmyk(60.7%, 57.6%, 0%, 25.1%)
CIE-LABlab(39.82, 31.07, -58.71)
CIE-LCHlch(39.82, 66.42, 297.89°)
OKLaboklab(49.36% 0.0174 -0.1686)
OKLCHoklch(49.36% 0.17 275.9)
XYZxyz(15.2450, 11.1411, 50.6272)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51BF #BFB94B
analogous
#4B8BBF #4B51BF #7F4BBF
triadic
#4B51BF #BF4B51 #51BF4B
tetradic
#4B51BF #BF4B8B #BFB94B #4BBF7F
square
#4B51BF #BF4B8B #BFB94B #4BBF7F
split-complementary
#4B51BF #BF7F4B #8BBF4B
monochromatic
#26296A #363B97 #4B51BF #787DCF #A5A8DF

Accessibility & contrast

On white

6.50
#4B51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4B51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B51BF
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51BF#FFFFFF#000000##FFFFFF
##4B51BF1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4b51bf;
/* rgb */ color: rgb(75, 81, 191);
/* oklch */ color: oklch(49.4% 0.170 275.9);
Tailwind
colors: {
  custom: {
    50: '#8982d3',
    500: '#4b51bf',
    950: '#000000',
  },
}
SCSS
$custom: #4b51bf;
$custom-light: #8982d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51bf",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 236.897,
    "s": 47.541,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49355,
    "c": 0.16955,
    "h": 275.9
  },
  "luminance": 0.11142
}

Semantic roles & 50–950 ramp

primary
#4B51BF
secondary
#CCCA9A
accent
#D051D7
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0D0A14
muted
#7D7C83

Preview Lab

Preview with #4B51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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