#4078CE#4078CE

#4078CE is a mid, vivid blue. Relative luminance 0.190; OKLCH L 57.8% C 0.145 H 258.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4078CE
RGBrgb(64, 120, 206)
HSLhsl(216, 59%, 53%)
HSVhsv(216, 69%, 81%)
CMYKcmyk(68.9%, 41.7%, 0%, 19.2%)
CIE-LABlab(50.66, 9.90, -49.93)
CIE-LCHlch(50.66, 50.91, 281.22°)
OKLaboklab(57.76% -0.0283 -0.1425)
OKLCHoklch(57.76% 0.145 258.8)
XYZxyz(19.9674, 18.9771, 60.9912)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078CE #CE9640
analogous
#40BFCE #4078CE #4F40CE
triadic
#4078CE #CE4078 #78CE40
tetradic
#4078CE #CE40BF #CE9640 #40CE4F
square
#4078CE #CE40BF #CE9640 #40CE4F
split-complementary
#4078CE #CE4F40 #BFCE40
monochromatic
#1E4175 #2B5BA6 #4078CE #719ADA #A1BDE7

Accessibility & contrast

On white

4.38
#4078CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#4078CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078CE
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078CE#FFFFFF#000000##000000
##4078CE1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F80D1
Deuteranopia (green-blind)
#3873CC
Tritanopia (blue-blind)
#008C99
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4078ce;
/* rgb */ color: rgb(64, 120, 206);
/* oklch */ color: oklch(57.8% 0.145 258.8);
Tailwind
colors: {
  custom: {
    50: '#849edd',
    500: '#4078ce',
    950: '#000000',
  },
}
SCSS
$custom: #4078ce;
$custom-light: #849edd;
$custom-dark: #000000;
JSON
{
  "hex": "#4078ce",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 206
  },
  "hsl": {
    "h": 216.338,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57755,
    "c": 0.14533,
    "h": 258.8
  },
  "luminance": 0.18979
}

Semantic roles & 50–950 ramp

primary
#4078CE
secondary
#D4BB96
accent
#A445E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078CE

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

Preview Lab → · Contrast checker → · Palette generator →

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