#4B51BB#4B51BB

#4B51BB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.0% C 0.164 H 276.1°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#4B51BB
RGBrgb(75, 81, 187)
HSLhsl(237, 45%, 51%)
HSVhsv(237, 60%, 73%)
CMYKcmyk(59.9%, 56.7%, 0%, 26.7%)
CIE-LABlab(39.53, 29.73, -56.84)
CIE-LCHlch(39.53, 64.14, 297.61°)
OKLaboklab(49.05% 0.0174 -0.1632)
OKLCHoklch(49.05% 0.164 276.1)
XYZxyz(14.8108, 10.9674, 48.3405)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51BB #BBB54B
analogous
#4B89BB #4B51BB #7D4BBB
triadic
#4B51BB #BB4B51 #51BB4B
tetradic
#4B51BB #BB4B89 #BBB54B #4BBB7D
square
#4B51BB #BB4B89 #BBB54B #4BBB7D
split-complementary
#4B51BB #BB7D4B #89BB4B
monochromatic
#262A65 #373C92 #4B51BB #777CCC #A4A7DD

Accessibility & contrast

On white

6.58
#4B51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4B51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B51BB
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51BB#FFFFFF#000000##FFFFFF
##4B51BB1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4b51bb;
/* rgb */ color: rgb(75, 81, 187);
/* oklch */ color: oklch(49.0% 0.164 276.1);
Tailwind
colors: {
  custom: {
    50: '#8881d0',
    500: '#4b51bb',
    950: '#000000',
  },
}
SCSS
$custom: #4b51bb;
$custom-light: #8881d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51bb",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 236.786,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49046,
    "c": 0.16408,
    "h": 276.1
  },
  "luminance": 0.10969
}

Semantic roles & 50–950 ramp

primary
#4B51BB
secondary
#CAC798
accent
#CE53D5
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4B51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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