#4178D9#4178D9

#4178D9 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 58.5% C 0.160 H 260.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#4178D9
RGBrgb(65, 120, 217)
HSLhsl(218, 67%, 55%)
HSVhsv(218, 70%, 85%)
CMYKcmyk(70%, 44.7%, 0%, 14.9%)
CIE-LABlab(51.34, 13.99, -55.08)
CIE-LCHlch(51.34, 56.83, 284.25°)
OKLaboklab(58.5% -0.0255 -0.1577)
OKLCHoklch(58.5% 0.16 260.8)
XYZxyz(21.4163, 19.5643, 68.2798)
Luminance0.1957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4178D9 #D9A241
analogous
#41C4D9 #4178D9 #5641D9
triadic
#4178D9 #D94178 #78D941
tetradic
#4178D9 #D941C4 #D9A241 #41D956
square
#4178D9 #D941C4 #D9A241 #41D956
split-complementary
#4178D9 #D95641 #C4D941
monochromatic
#1B4185 #255AB8 #4178D9 #749CE3 #A7C0ED

Accessibility & contrast

On white

4.27
#4178D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#4178D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4178D9
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4178D9#FFFFFF#000000##000000
##4178D91.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4782DD
Deuteranopia (green-blind)
#2A74D7
Tritanopia (blue-blind)
#008F9E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4178d9;
/* rgb */ color: rgb(65, 120, 217);
/* oklch */ color: oklch(58.5% 0.160 260.8);
Tailwind
colors: {
  custom: {
    50: '#879ee5',
    500: '#4178d9',
    950: '#000000',
  },
}
SCSS
$custom: #4178d9;
$custom-light: #879ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#4178d9",
  "rgb": {
    "r": 65,
    "g": 120,
    "b": 217
  },
  "hsl": {
    "h": 218.289,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58499,
    "c": 0.15971,
    "h": 260.8
  },
  "luminance": 0.19567
}

Semantic roles & 50–950 ramp

primary
#4178D9
secondary
#DBC49B
accent
#AC3EEA
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0E16
muted
#7D7E84

Preview Lab

Preview with #4178D9

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

Preview Lab → · Contrast checker → · Palette generator →

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