#4A51BC#4A51BC

#4A51BC is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.1% C 0.166 H 275.6°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#4A51BC
RGBrgb(74, 81, 188)
HSLhsl(236, 46%, 51%)
HSVhsv(236, 61%, 74%)
CMYKcmyk(60.6%, 56.9%, 0%, 26.3%)
CIE-LABlab(39.53, 29.89, -57.42)
CIE-LCHlch(39.53, 64.73, 297.50°)
OKLaboklab(49.06% 0.0162 -0.1649)
OKLCHoklch(49.06% 0.166 275.6)
XYZxyz(14.8406, 10.9704, 48.9026)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51BC #BCB54A
analogous
#4A8ABC #4A51BC #7C4ABC
triadic
#4A51BC #BC4A51 #51BC4A
tetradic
#4A51BC #BC4A8A #BCB54A #4ABC7C
square
#4A51BC #BC4A8A #BCB54A #4ABC7C
split-complementary
#4A51BC #BC7C4A #8ABC4A
monochromatic
#262A66 #363C93 #4A51BC #777CCD #A3A7DD

Accessibility & contrast

On white

6.57
#4A51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4A51BC
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51BC#FFFFFF#000000##FFFFFF
##4A51BC1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a51bc;
/* rgb */ color: rgb(74, 81, 188);
/* oklch */ color: oklch(49.1% 0.166 275.6);
Tailwind
colors: {
  custom: {
    50: '#8881d1',
    500: '#4a51bc',
    950: '#000000',
  },
}
SCSS
$custom: #4a51bc;
$custom-light: #8881d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51bc",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 236.316,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49056,
    "c": 0.16569,
    "h": 275.6
  },
  "luminance": 0.10972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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