#4872E8#4872E8

#4872E8 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.6% C 0.185 H 266.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4872E8
RGBrgb(72, 114, 232)
HSLhsl(224, 78%, 60%)
HSVhsv(224, 69%, 91%)
CMYKcmyk(69%, 50.9%, 0%, 9%)
CIE-LABlab(50.96, 24.07, -64.12)
CIE-LCHlch(50.96, 68.49, 290.58°)
OKLaboklab(58.59% -0.0126 -0.1842)
OKLCHoklch(58.59% 0.185 266.1)
XYZxyz(23.2502, 19.2362, 78.8159)
Luminance0.1924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4872E8 #E8BE48
analogous
#48C2E8 #4872E8 #6E48E8
triadic
#4872E8 #E84872 #72E848
tetradic
#4872E8 #E848C2 #E8BE48 #48E86E
square
#4872E8 #E848C2 #E8BE48 #48E86E
split-complementary
#4872E8 #E86E48 #C2E848
monochromatic
#1439A1 #1B4DD8 #4872E8 #7E9CEF #B5C6F6

Accessibility & contrast

On white

4.33
#4872E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#4872E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4872E8
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4872E8#FFFFFF#000000##000000
##4872E81.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2881EC
Deuteranopia (green-blind)
#0072E6
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4872e8;
/* rgb */ color: rgb(72, 114, 232);
/* oklch */ color: oklch(58.6% 0.185 266.1);
Tailwind
colors: {
  custom: {
    50: '#8d9af0',
    500: '#4872e8',
    950: '#000000',
  },
}
SCSS
$custom: #4872e8;
$custom-light: #8d9af0;
$custom-dark: #000000;
JSON
{
  "hex": "#4872e8",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 232
  },
  "hsl": {
    "h": 224.25,
    "s": 77.67,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58592,
    "c": 0.18467,
    "h": 266.1
  },
  "luminance": 0.19239
}

Semantic roles & 50–950 ramp

primary
#4872E8
secondary
#E5D5A7
accent
#C234F4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4872E8

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

Preview Lab → · Contrast checker → · Palette generator →

#4872E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva