#4178C5#4178C5

#4178C5 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.2% C 0.133 H 257.2°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#4178C5
RGBrgb(65, 120, 197)
HSLhsl(215, 53%, 51%)
HSVhsv(215, 67%, 77%)
CMYKcmyk(67%, 39.1%, 0%, 22.7%)
CIE-LABlab(50.20, 6.86, -45.53)
CIE-LCHlch(50.20, 46.04, 278.57°)
OKLaboklab(57.25% -0.0295 -0.1296)
OKLCHoklch(57.25% 0.133 257.2)
XYZxyz(18.9708, 18.5861, 55.4002)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4178C5 #C58E41
analogous
#41BAC5 #4178C5 #4C41C5
triadic
#4178C5 #C54178 #78C541
tetradic
#4178C5 #C541BA #C58E41 #41C54C
square
#4178C5 #C541BA #C58E41 #41C54C
split-complementary
#4178C5 #C54C41 #BAC541
monochromatic
#21406B #2F5B9A #4178C5 #7099D3 #9FBBE2

Accessibility & contrast

On white

4.45
#4178C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#4178C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4178C5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4178C5#FFFFFF#000000##000000
##4178C51.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#557EC8
Deuteranopia (green-blind)
#4272C3
Tritanopia (blue-blind)
#008A95
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4178c5;
/* rgb */ color: rgb(65, 120, 197);
/* oklch */ color: oklch(57.2% 0.133 257.2);
Tailwind
colors: {
  custom: {
    50: '#839ed7',
    500: '#4178c5',
    950: '#000000',
  },
}
SCSS
$custom: #4178c5;
$custom-light: #839ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#4178c5",
  "rgb": {
    "r": 65,
    "g": 120,
    "b": 197
  },
  "hsl": {
    "h": 215,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.57245,
    "c": 0.13292,
    "h": 257.2
  },
  "luminance": 0.18588
}

Semantic roles & 50–950 ramp

primary
#4178C5
secondary
#CEB694
accent
#A04BDD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4178C5

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

Preview Lab → · Contrast checker → · Palette generator →

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