#4A7CEB#4A7CEB

#4A7CEB is a mid, vivid blue. Relative luminance 0.219; OKLCH L 60.9% C 0.176 H 263.7°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#4A7CEB
RGBrgb(74, 124, 235)
HSLhsl(221, 80%, 61%)
HSVhsv(221, 69%, 92%)
CMYKcmyk(68.5%, 47.2%, 0%, 7.8%)
CIE-LABlab(53.89, 19.22, -61.09)
CIE-LCHlch(53.89, 64.04, 287.47°)
OKLaboklab(60.9% -0.0192 -0.1751)
OKLCHoklch(60.9% 0.176 263.7)
XYZxyz(25.0218, 21.8668, 81.4832)
Luminance0.2187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7CEB #EBB94A
analogous
#4ACDEB #4A7CEB #684AEB
triadic
#4A7CEB #EB4A7C #7CEB4A
tetradic
#4A7CEB #EB4ACD #EBB94A #4AEB68
square
#4A7CEB #EB4ACD #EBB94A #4AEB68
split-complementary
#4A7CEB #EB684A #CDEB4A
monochromatic
#1341A8 #1956DF #4A7CEB #81A4F1 #B8CCF7

Accessibility & contrast

On white

3.91
#4A7CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#4A7CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A7CEB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7CEB#FFFFFF#000000##000000
##4A7CEB1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4189EF
Deuteranopia (green-blind)
#187AE9
Tritanopia (blue-blind)
#0096A8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #4a7ceb;
/* rgb */ color: rgb(74, 124, 235);
/* oklch */ color: oklch(60.9% 0.176 263.7);
Tailwind
colors: {
  custom: {
    50: '#8ea1f2',
    500: '#4a7ceb',
    950: '#000000',
  },
}
SCSS
$custom: #4a7ceb;
$custom-light: #8ea1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7ceb",
  "rgb": {
    "r": 74,
    "g": 124,
    "b": 235
  },
  "hsl": {
    "h": 221.366,
    "s": 80.1,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60904,
    "c": 0.17616,
    "h": 263.7
  },
  "luminance": 0.21869
}

Semantic roles & 50–950 ramp

primary
#4A7CEB
secondary
#E7D4AA
accent
#9B09DC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4A7CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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