#4078D2#4078D2

#4078D2 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.0% C 0.151 H 259.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4078D2
RGBrgb(64, 120, 210)
HSLhsl(217, 62%, 54%)
HSVhsv(217, 70%, 82%)
CMYKcmyk(69.5%, 42.9%, 0%, 17.6%)
CIE-LABlab(50.89, 11.34, -51.84)
CIE-LCHlch(50.89, 53.07, 282.33°)
OKLaboklab(58.01% -0.0275 -0.1481)
OKLCHoklch(58.01% 0.151 259.5)
XYZxyz(20.4595, 19.1739, 63.5830)
Luminance0.1918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078D2 #D29A40
analogous
#40C1D2 #4078D2 #5140D2
triadic
#4078D2 #D24078 #78D240
tetradic
#4078D2 #D240C1 #D29A40 #40D251
square
#4078D2 #D240C1 #D29A40 #40D251
split-complementary
#4078D2 #D25140 #C1D240
monochromatic
#1D417B #295BAC #4078D2 #729BDE #A3BEE9

Accessibility & contrast

On white

4.34
#4078D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#4078D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078D2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078D2#FFFFFF#000000##000000
##4078D21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D80D5
Deuteranopia (green-blind)
#3373D0
Tritanopia (blue-blind)
#008D9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4078d2;
/* rgb */ color: rgb(64, 120, 210);
/* oklch */ color: oklch(58.0% 0.151 259.5);
Tailwind
colors: {
  custom: {
    50: '#859ee0',
    500: '#4078d2',
    950: '#000000',
  },
}
SCSS
$custom: #4078d2;
$custom-light: #859ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#4078d2",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 210
  },
  "hsl": {
    "h": 216.986,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58007,
    "c": 0.15068,
    "h": 259.5
  },
  "luminance": 0.19176
}

Semantic roles & 50–950 ramp

primary
#4078D2
secondary
#D6BE98
accent
#A743E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078D2

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

Preview Lab → · Contrast checker → · Palette generator →

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