#4078CD#4078CD

#4078CD is a mid, vivid blue. Relative luminance 0.189; OKLCH L 57.7% C 0.144 H 258.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4078CD
RGBrgb(64, 120, 205)
HSLhsl(216, 59%, 53%)
HSVhsv(216, 69%, 80%)
CMYKcmyk(68.8%, 41.5%, 0%, 19.6%)
CIE-LABlab(50.60, 9.55, -49.46)
CIE-LCHlch(50.60, 50.37, 280.93°)
OKLaboklab(57.69% -0.0285 -0.1411)
OKLCHoklch(57.69% 0.144 258.6)
XYZxyz(19.8463, 18.9287, 60.3534)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078CD #CD9540
analogous
#40BFCD #4078CD #4E40CD
triadic
#4078CD #CD4078 #78CD40
tetradic
#4078CD #CD40BF #CD9540 #40CD4E
square
#4078CD #CD40BF #CD9540 #40CD4E
split-complementary
#4078CD #CD4E40 #BFCD40
monochromatic
#1E4074 #2B5BA5 #4078CD #719ADA #A1BDE6

Accessibility & contrast

On white

4.39
#4078CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#4078CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078CD
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078CD#FFFFFF#000000##000000
##4078CD1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5080D0
Deuteranopia (green-blind)
#3972CB
Tritanopia (blue-blind)
#008C98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4078cd;
/* rgb */ color: rgb(64, 120, 205);
/* oklch */ color: oklch(57.7% 0.144 258.6);
Tailwind
colors: {
  custom: {
    50: '#849edd',
    500: '#4078cd',
    950: '#000000',
  },
}
SCSS
$custom: #4078cd;
$custom-light: #849edd;
$custom-dark: #000000;
JSON
{
  "hex": "#4078cd",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 205
  },
  "hsl": {
    "h": 216.17,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57692,
    "c": 0.144,
    "h": 258.6
  },
  "luminance": 0.18931
}

Semantic roles & 50–950 ramp

primary
#4078CD
secondary
#D3BB96
accent
#A446E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078CD

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

Preview Lab → · Contrast checker → · Palette generator →

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