#4078D0#4078D0

#4078D0 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 57.9% C 0.148 H 259.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4078D0
RGBrgb(64, 120, 208)
HSLhsl(217, 61%, 53%)
HSVhsv(217, 69%, 82%)
CMYKcmyk(69.2%, 42.3%, 0%, 18.4%)
CIE-LABlab(50.77, 10.62, -50.89)
CIE-LCHlch(50.77, 51.99, 281.79°)
OKLaboklab(57.88% -0.0279 -0.1454)
OKLCHoklch(57.88% 0.148 259.1)
XYZxyz(20.2119, 19.0749, 62.2789)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078D0 #D09840
analogous
#40C0D0 #4078D0 #5040D0
triadic
#4078D0 #D04078 #78D040
tetradic
#4078D0 #D040C0 #D09840 #40D050
square
#4078D0 #D040C0 #D09840 #40D050
split-complementary
#4078D0 #D05040 #C0D040
monochromatic
#1E4178 #2A5BA9 #4078D0 #719BDC #A2BDE8

Accessibility & contrast

On white

4.36
#4078D0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#4078D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078D0
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078D0#FFFFFF#000000##000000
##4078D01.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E80D3
Deuteranopia (green-blind)
#3673CE
Tritanopia (blue-blind)
#008C9A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4078d0;
/* rgb */ color: rgb(64, 120, 208);
/* oklch */ color: oklch(57.9% 0.148 259.1);
Tailwind
colors: {
  custom: {
    50: '#859edf',
    500: '#4078d0',
    950: '#000000',
  },
}
SCSS
$custom: #4078d0;
$custom-light: #859edf;
$custom-dark: #000000;
JSON
{
  "hex": "#4078d0",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 208
  },
  "hsl": {
    "h": 216.667,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5788,
    "c": 0.14801,
    "h": 259.1
  },
  "luminance": 0.19077
}

Semantic roles & 50–950 ramp

primary
#4078D0
secondary
#D5BD97
accent
#A644E4
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078D0

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

Preview Lab → · Contrast checker → · Palette generator →

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