#4078B2#4078B2

#4078B2 is a mid, moderate cyan. Relative luminance 0.177; OKLCH L 56.1% C 0.108 H 251.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4078B2
RGBrgb(64, 120, 178)
HSLhsl(211, 47%, 47%)
HSVhsv(211, 64%, 70%)
CMYKcmyk(64%, 32.6%, 0%, 30.2%)
CIE-LABlab(49.17, 0.04, -36.21)
CIE-LCHlch(49.17, 36.21, 270.06°)
OKLaboklab(56.11% -0.0351 -0.1024)
OKLCHoklch(56.11% 0.108 251.1)
XYZxyz(16.8638, 17.7356, 44.6454)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4078B2 #B27A40
analogous
#40B1B2 #4078B2 #4140B2
triadic
#4078B2 #B24078 #78B240
tetradic
#4078B2 #B240B1 #B27A40 #40B241
square
#4078B2 #B240B1 #B27A40 #40B241
split-complementary
#4078B2 #B24140 #B1B240
monochromatic
#203B58 #305A85 #4078B2 #6797C8 #94B6D8

Accessibility & contrast

On white

4.62
#4078B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#4078B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4078B2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4078B2#FFFFFF#000000##FFFFFF
##4078B21.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F7BB4
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#00868D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4078b2;
/* rgb */ color: rgb(64, 120, 178);
/* oklch */ color: oklch(56.1% 0.108 251.1);
Tailwind
colors: {
  custom: {
    50: '#809ec9',
    500: '#4078b2',
    950: '#000000',
  },
}
SCSS
$custom: #4078b2;
$custom-light: #809ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4078b2",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 178
  },
  "hsl": {
    "h": 210.526,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56112,
    "c": 0.10827,
    "h": 251.1
  },
  "luminance": 0.17737
}

Semantic roles & 50–950 ramp

primary
#4078B2
secondary
#C4A78A
accent
#9551D7
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0E13
muted
#7C7E82

Preview Lab

Preview with #4078B2

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

Preview Lab → · Contrast checker → · Palette generator →

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