#4078E1#4078E1

#4078E1 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.0% C 0.171 H 261.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#4078E1
RGBrgb(64, 120, 225)
HSLhsl(219, 73%, 57%)
HSVhsv(219, 72%, 88%)
CMYKcmyk(71.6%, 46.7%, 0%, 11.8%)
CIE-LABlab(51.79, 16.73, -58.88)
CIE-LCHlch(51.79, 61.21, 285.86°)
OKLaboklab(58.99% -0.0249 -0.1688)
OKLCHoklch(58.99% 0.171 261.6)
XYZxyz(22.4166, 19.9568, 73.8902)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078E1 #E1A940
analogous
#40C9E1 #4078E1 #5840E1
triadic
#4078E1 #E14078 #78E140
tetradic
#4078E1 #E140C9 #E1A940 #40E158
square
#4078E1 #E140C9 #E1A940 #40E158
split-complementary
#4078E1 #E15840 #C9E140
monochromatic
#174190 #1F59C5 #4078E1 #759DE9 #AAC3F2

Accessibility & contrast

On white

4.21
#4078E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#4078E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078E1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078E1#FFFFFF#000000##000000
##4078E11.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4083E5
Deuteranopia (green-blind)
#1775DF
Tritanopia (blue-blind)
#0091A2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4078e1;
/* rgb */ color: rgb(64, 120, 225);
/* oklch */ color: oklch(59.0% 0.171 261.6);
Tailwind
colors: {
  custom: {
    50: '#889eeb',
    500: '#4078e1',
    950: '#000000',
  },
}
SCSS
$custom: #4078e1;
$custom-light: #889eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#4078e1",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 225
  },
  "hsl": {
    "h": 219.13,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58988,
    "c": 0.17067,
    "h": 261.6
  },
  "luminance": 0.19959
}

Semantic roles & 50–950 ramp

primary
#4078E1
secondary
#DFC89D
accent
#B038F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4078E1

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

Preview Lab → · Contrast checker → · Palette generator →

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