#4078CB#4078CB

#4078CB is a mid, vivid blue. Relative luminance 0.188; OKLCH L 57.6% C 0.141 H 258.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4078CB
RGBrgb(64, 120, 203)
HSLhsl(216, 57%, 52%)
HSVhsv(216, 68%, 80%)
CMYKcmyk(68.5%, 40.9%, 0%, 20.4%)
CIE-LABlab(50.49, 8.83, -48.50)
CIE-LCHlch(50.49, 49.29, 280.32°)
OKLaboklab(57.57% -0.0289 -0.1383)
OKLCHoklch(57.57% 0.141 258.2)
XYZxyz(19.6064, 18.8327, 59.0901)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078CB #CB9340
analogous
#40BECB #4078CB #4D40CB
triadic
#4078CB #CB4078 #78CB40
tetradic
#4078CB #CB40BE #CB9340 #40CB4D
square
#4078CB #CB40BE #CB9340 #40CB4D
split-complementary
#4078CB #CB4D40 #BECB40
monochromatic
#1F4072 #2C5BA2 #4078CB #709AD8 #A0BCE5

Accessibility & contrast

On white

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

On black

4.77
#4078CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4078CB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078CB#FFFFFF#000000##000000
##4078CB1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#517FCE
Deuteranopia (green-blind)
#3B72C9
Tritanopia (blue-blind)
#008B97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4078cb;
/* rgb */ color: rgb(64, 120, 203);
/* oklch */ color: oklch(57.6% 0.141 258.2);
Tailwind
colors: {
  custom: {
    50: '#849edb',
    500: '#4078cb',
    950: '#000000',
  },
}
SCSS
$custom: #4078cb;
$custom-light: #849edb;
$custom-dark: #000000;
JSON
{
  "hex": "#4078cb",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 203
  },
  "hsl": {
    "h": 215.827,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57568,
    "c": 0.14132,
    "h": 258.2
  },
  "luminance": 0.18835
}

Semantic roles & 50–950 ramp

primary
#4078CB
secondary
#D2B995
accent
#A347E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4078CB

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

Preview Lab → · Contrast checker → · Palette generator →

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