#4B51BA#4B51BA

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

Color values

HEX#4B51BA
RGBrgb(75, 81, 186)
HSLhsl(237, 45%, 51%)
HSVhsv(237, 60%, 73%)
CMYKcmyk(59.7%, 56.5%, 0%, 27.1%)
CIE-LABlab(39.45, 29.39, -56.37)
CIE-LCHlch(39.45, 63.57, 297.54°)
OKLaboklab(48.97% 0.0174 -0.1618)
OKLCHoklch(48.97% 0.163 276.1)
XYZxyz(14.7041, 10.9248, 47.7787)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B51BA #BAB44B
analogous
#4B88BA #4B51BA #7C4BBA
triadic
#4B51BA #BA4B51 #51BA4B
tetradic
#4B51BA #BA4B88 #BAB44B #4BBA7C
square
#4B51BA #BA4B88 #BAB44B #4BBA7C
split-complementary
#4B51BA #BA7C4B #88BA4B
monochromatic
#262A64 #373C90 #4B51BA #777CCB #A3A7DC

Accessibility & contrast

On white

6.59
#4B51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4B51BA
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B51BA#FFFFFF#000000##FFFFFF
##4B51BA1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4b51ba;
/* rgb */ color: rgb(75, 81, 186);
/* oklch */ color: oklch(49.0% 0.163 276.1);
Tailwind
colors: {
  custom: {
    50: '#8881cf',
    500: '#4b51ba',
    950: '#000000',
  },
}
SCSS
$custom: #4b51ba;
$custom-light: #8881cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b51ba",
  "rgb": {
    "r": 75,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 236.757,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4897,
    "c": 0.16271,
    "h": 276.1
  },
  "luminance": 0.10926
}

Semantic roles & 50–950 ramp

primary
#4B51BA
secondary
#C9C698
accent
#CD54D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4B51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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