#4178DC#4178DC

#4178DC is a mid, vivid blue. Relative luminance 0.197; OKLCH L 58.7% C 0.164 H 261.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#4178DC
RGBrgb(65, 120, 220)
HSLhsl(219, 69%, 56%)
HSVhsv(219, 70%, 86%)
CMYKcmyk(70.5%, 45.5%, 0%, 13.7%)
CIE-LABlab(51.52, 15.07, -56.49)
CIE-LCHlch(51.52, 58.46, 284.94°)
OKLaboklab(58.7% -0.025 -0.1618)
OKLCHoklch(58.7% 0.164 261.2)
XYZxyz(21.8101, 19.7218, 70.3535)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4178DC #DCA541
analogous
#41C5DC #4178DC #5741DC
triadic
#4178DC #DC4178 #78DC41
tetradic
#4178DC #DC41C5 #DCA541 #41DC57
square
#4178DC #DC41C5 #DCA541 #41DC57
split-complementary
#4178DC #DC5741 #C5DC41
monochromatic
#194189 #235ABD #4178DC #759DE6 #A8C1EF

Accessibility & contrast

On white

4.25
#4178DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#4178DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4178DC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4178DC#FFFFFF#000000##000000
##4178DC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4582E0
Deuteranopia (green-blind)
#2474DA
Tritanopia (blue-blind)
#008F9F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4178dc;
/* rgb */ color: rgb(65, 120, 220);
/* oklch */ color: oklch(58.7% 0.164 261.2);
Tailwind
colors: {
  custom: {
    50: '#879ee7',
    500: '#4178dc',
    950: '#000000',
  },
}
SCSS
$custom: #4178dc;
$custom-light: #879ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#4178dc",
  "rgb": {
    "r": 65,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 218.71,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58695,
    "c": 0.16372,
    "h": 261.2
  },
  "luminance": 0.19724
}

Semantic roles & 50–950 ramp

primary
#4178DC
secondary
#DDC69C
accent
#AD3CEC
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4178DC

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

Preview Lab → · Contrast checker → · Palette generator →

#4178DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva