#4A7FEA#4A7FEA

#4A7FEA is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.5% C 0.171 H 262.6°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#4A7FEA
RGBrgb(74, 127, 234)
HSLhsl(220, 79%, 60%)
HSVhsv(220, 68%, 92%)
CMYKcmyk(68.4%, 45.7%, 0%, 8.2%)
CIE-LABlab(54.63, 17.03, -59.33)
CIE-LCHlch(54.63, 61.73, 286.01°)
OKLaboklab(61.46% -0.022 -0.1699)
OKLCHoklch(61.46% 0.171 262.6)
XYZxyz(25.2594, 22.5725, 80.8517)
Luminance0.2258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7FEA #EAB54A
analogous
#4ACFEA #4A7FEA #654AEA
triadic
#4A7FEA #EA4A7F #7FEA4A
tetradic
#4A7FEA #EA4ACF #EAB54A #4AEA65
square
#4A7FEA #EA4ACF #EAB54A #4AEA65
split-complementary
#4A7FEA #EA654A #CFEA4A
monochromatic
#1344A6 #1A5ADD #4A7FEA #81A6F0 #B8CDF7

Accessibility & contrast

On white

3.81
#4A7FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#4A7FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4A7FEA
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7FEA#FFFFFF#000000##000000
##4A7FEA1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BEE
Deuteranopia (green-blind)
#277CE8
Tritanopia (blue-blind)
#0098A9
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #4a7fea;
/* rgb */ color: rgb(74, 127, 234);
/* oklch */ color: oklch(61.5% 0.171 262.6);
Tailwind
colors: {
  custom: {
    50: '#8ea3f1',
    500: '#4a7fea',
    950: '#000000',
  },
}
SCSS
$custom: #4a7fea;
$custom-light: #8ea3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7fea",
  "rgb": {
    "r": 74,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 220.125,
    "s": 79.208,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61455,
    "c": 0.17133,
    "h": 262.6
  },
  "luminance": 0.22575
}

Semantic roles & 50–950 ramp

primary
#4A7FEA
secondary
#E6D2A9
accent
#960ADC
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #4A7FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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