#4878EF#4878EF

#4878EF is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.3% C 0.187 H 264.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4878EF
RGBrgb(72, 120, 239)
HSLhsl(223, 84%, 61%)
HSVhsv(223, 70%, 94%)
CMYKcmyk(69.9%, 49.8%, 0%, 6.3%)
CIE-LABlab(52.99, 22.82, -64.76)
CIE-LCHlch(52.99, 68.66, 289.41°)
OKLaboklab(60.28% -0.0169 -0.186)
OKLCHoklch(60.28% 0.187 264.8)
XYZxyz(24.9635, 21.0401, 84.3901)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4878EF #EFBF48
analogous
#48CCEF #4878EF #6B48EF
triadic
#4878EF #EF4878 #78EF48
tetradic
#4878EF #EF48CC #EFBF48 #48EF6B
square
#4878EF #EF48CC #EFBF48 #48EF6B
split-complementary
#4878EF #EF6B48 #CCEF48
monochromatic
#0F3DAD #1450E6 #4878EF #80A2F4 #B9CBF9

Accessibility & contrast

On white

4.03
#4878EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#4878EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4878EF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4878EF#FFFFFF#000000##000000
##4878EF1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3187F3
Deuteranopia (green-blind)
#0077ED
Tritanopia (blue-blind)
#0094A8
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4878ef;
/* rgb */ color: rgb(72, 120, 239);
/* oklch */ color: oklch(60.3% 0.187 264.8);
Tailwind
colors: {
  custom: {
    50: '#8e9ef5',
    500: '#4878ef',
    950: '#000000',
  },
}
SCSS
$custom: #4878ef;
$custom-light: #8e9ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#4878ef",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 222.754,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60281,
    "c": 0.18679,
    "h": 264.8
  },
  "luminance": 0.21043
}

Semantic roles & 50–950 ramp

primary
#4878EF
secondary
#E9D7AA
accent
#A105E0
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4878EF

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

Preview Lab → · Contrast checker → · Palette generator →

#4878EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva