#4078CA#4078CA

#4078CA is a mid, vivid blue. Relative luminance 0.188; OKLCH L 57.5% C 0.140 H 258.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4078CA
RGBrgb(64, 120, 202)
HSLhsl(216, 57%, 52%)
HSVhsv(216, 68%, 79%)
CMYKcmyk(68.3%, 40.6%, 0%, 20.8%)
CIE-LABlab(50.43, 8.48, -48.01)
CIE-LCHlch(50.43, 48.76, 280.01°)
OKLaboklab(57.51% -0.0291 -0.1369)
OKLCHoklch(57.51% 0.14 258)
XYZxyz(19.4876, 18.7852, 58.4645)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078CA #CA9240
analogous
#40BDCA #4078CA #4D40CA
triadic
#4078CA #CA4078 #78CA40
tetradic
#4078CA #CA40BD #CA9240 #40CA4D
square
#4078CA #CA40BD #CA9240 #40CA4D
split-complementary
#4078CA #CA4D40 #BDCA40
monochromatic
#1F4070 #2C5BA0 #4078CA #709AD7 #A0BCE5

Accessibility & contrast

On white

4.41
#4078CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#4078CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078CA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078CA#FFFFFF#000000##000000
##4078CA1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#527FCD
Deuteranopia (green-blind)
#3C72C8
Tritanopia (blue-blind)
#008B97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4078ca;
/* rgb */ color: rgb(64, 120, 202);
/* oklch */ color: oklch(57.5% 0.140 258.0);
Tailwind
colors: {
  custom: {
    50: '#849eda',
    500: '#4078ca',
    950: '#000000',
  },
}
SCSS
$custom: #4078ca;
$custom-light: #849eda;
$custom-dark: #000000;
JSON
{
  "hex": "#4078ca",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 215.652,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57507,
    "c": 0.13998,
    "h": 258
  },
  "luminance": 0.18787
}

Semantic roles & 50–950 ramp

primary
#4078CA
secondary
#D1B995
accent
#A248E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078CA

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

Preview Lab → · Contrast checker → · Palette generator →

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