#4078ED#4078ED

#4078ED is a mid, vivid blue. Relative luminance 0.206; OKLCH L 59.8% C 0.186 H 262.8°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#4078ED
RGBrgb(64, 120, 237)
HSLhsl(221, 83%, 59%)
HSVhsv(221, 73%, 93%)
CMYKcmyk(73%, 49.4%, 0%, 7.1%)
CIE-LABlab(52.55, 21.05, -64.38)
CIE-LCHlch(52.55, 67.73, 288.11°)
OKLaboklab(59.81% -0.0233 -0.185)
OKLCHoklch(59.81% 0.186 262.8)
XYZxyz(24.1114, 20.6347, 82.8165)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078ED #EDB540
analogous
#40CFED #4078ED #5F40ED
triadic
#4078ED #ED4078 #78ED40
tetradic
#4078ED #ED40CF #EDB540 #40ED5F
square
#4078ED #ED40CF #EDB540 #40ED5F
split-complementary
#4078ED #ED5F40 #CFED40
monochromatic
#0F3FA3 #1555DB #4078ED #78A0F2 #B0C7F8

Accessibility & contrast

On white

4.10
#4078ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#4078ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078ED
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078ED#FFFFFF#000000##000000
##4078ED1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3286F1
Deuteranopia (green-blind)
#0076EB
Tritanopia (blue-blind)
#0094A7
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4078ed;
/* rgb */ color: rgb(64, 120, 237);
/* oklch */ color: oklch(59.8% 0.186 262.8);
Tailwind
colors: {
  custom: {
    50: '#8a9ef4',
    500: '#4078ed',
    950: '#000000',
  },
}
SCSS
$custom: #4078ed;
$custom-light: #8a9ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#4078ed",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 237
  },
  "hsl": {
    "h": 220.578,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59812,
    "c": 0.18649,
    "h": 262.8
  },
  "luminance": 0.20637
}

Semantic roles & 50–950 ramp

primary
#4078ED
secondary
#E6D0A2
accent
#B82FF9
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0D0E17
muted
#7E7E85

Preview Lab

Preview with #4078ED

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

Preview Lab → · Contrast checker → · Palette generator →

#4078ED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva