#4078CF#4078CF

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

Color values

HEX#4078CF
RGBrgb(64, 120, 207)
HSLhsl(217, 60%, 53%)
HSVhsv(217, 69%, 81%)
CMYKcmyk(69.1%, 42%, 0%, 18.8%)
CIE-LABlab(50.72, 10.26, -50.41)
CIE-LCHlch(50.72, 51.45, 281.51°)
OKLaboklab(57.82% -0.0281 -0.144)
OKLCHoklch(57.82% 0.147 259)
XYZxyz(20.0892, 19.0258, 61.6330)
Luminance0.1903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078CF #CF9740
analogous
#40C0CF #4078CF #4F40CF
triadic
#4078CF #CF4078 #78CF40
tetradic
#4078CF #CF40C0 #CF9740 #40CF4F
square
#4078CF #CF40C0 #CF9740 #40CF4F
split-complementary
#4078CF #CF4F40 #C0CF40
monochromatic
#1E4177 #2A5BA8 #4078CF #719BDB #A2BDE8

Accessibility & contrast

On white

4.37
#4078CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#4078CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078CF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078CF#FFFFFF#000000##000000
##4078CF1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F80D2
Deuteranopia (green-blind)
#3773CD
Tritanopia (blue-blind)
#008C99
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4078cf;
/* rgb */ color: rgb(64, 120, 207);
/* oklch */ color: oklch(57.8% 0.147 259.0);
Tailwind
colors: {
  custom: {
    50: '#859ede',
    500: '#4078cf',
    950: '#000000',
  },
}
SCSS
$custom: #4078cf;
$custom-light: #859ede;
$custom-dark: #000000;
JSON
{
  "hex": "#4078cf",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 207
  },
  "hsl": {
    "h": 216.503,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57817,
    "c": 0.14667,
    "h": 259
  },
  "luminance": 0.19028
}

Semantic roles & 50–950 ramp

primary
#4078CF
secondary
#D4BC97
accent
#A545E3
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078CF

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

Preview Lab → · Contrast checker → · Palette generator →

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