#4864D4#4864D4

#4864D4 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.4% C 0.175 H 269.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#4864D4
RGBrgb(72, 100, 212)
HSLhsl(228, 62%, 56%)
HSVhsv(228, 66%, 83%)
CMYKcmyk(66%, 52.8%, 0%, 16.9%)
CIE-LABlab(45.97, 25.82, -60.88)
CIE-LCHlch(45.97, 66.13, 292.98°)
OKLaboklab(54.38% -0.0023 -0.1749)
OKLCHoklch(54.38% 0.175 269.2)
XYZxyz(19.1093, 15.2437, 64.2099)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4864D4 #D4B848
analogous
#48AAD4 #4864D4 #7248D4
triadic
#4864D4 #D44864 #64D448
tetradic
#4864D4 #D448AA #D4B848 #48D472
square
#4864D4 #D448AA #D4B848 #48D472
split-complementary
#4864D4 #D47248 #AAD448
monochromatic
#1F3383 #2A46B4 #4864D4 #7A8EE0 #ABB8EB

Accessibility & contrast

On white

5.19
#4864D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#4864D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4864D4
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4864D4#FFFFFF#000000##FFFFFF
##4864D41.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1873D8
Deuteranopia (green-blind)
#0067D2
Tritanopia (blue-blind)
#007F92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4864d4;
/* rgb */ color: rgb(72, 100, 212);
/* oklch */ color: oklch(54.4% 0.175 269.2);
Tailwind
colors: {
  custom: {
    50: '#8a8fe2',
    500: '#4864d4',
    950: '#000000',
  },
}
SCSS
$custom: #4864d4;
$custom-light: #8a8fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#4864d4",
  "rgb": {
    "r": 72,
    "g": 100,
    "b": 212
  },
  "hsl": {
    "h": 228,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54384,
    "c": 0.1749,
    "h": 269.2
  },
  "luminance": 0.15246
}

Semantic roles & 50–950 ramp

primary
#4864D4
secondary
#D9CD9F
accent
#C543E5
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #4864D4

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

Preview Lab → · Contrast checker → · Palette generator →

#4864D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva