#4171D8#4171D8

#4171D8 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 57.0% C 0.167 H 263.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4171D8
RGBrgb(65, 113, 216)
HSLhsl(221, 66%, 55%)
HSVhsv(221, 70%, 85%)
CMYKcmyk(69.9%, 47.7%, 0%, 15.3%)
CIE-LABlab(49.36, 18.00, -57.69)
CIE-LCHlch(49.36, 60.44, 287.33°)
OKLaboklab(56.96% -0.0194 -0.1655)
OKLCHoklch(56.96% 0.167 263.3)
XYZxyz(20.4754, 17.8898, 67.3264)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4171D8 #D8A841
analogous
#41BDD8 #4171D8 #5C41D8
triadic
#4171D8 #D84171 #71D841
tetradic
#4171D8 #D841BD #D8A841 #41D85C
square
#4171D8 #D841BD #D8A841 #41D85C
split-complementary
#4171D8 #D85C41 #BDD841
monochromatic
#1B3C84 #2554B6 #4171D8 #7497E2 #A7BDED

Accessibility & contrast

On white

4.59
#4171D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#4171D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4171D8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4171D8#FFFFFF#000000##FFFFFF
##4171D81.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#397DDC
Deuteranopia (green-blind)
#106FD6
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4171d8;
/* rgb */ color: rgb(65, 113, 216);
/* oklch */ color: oklch(57.0% 0.167 263.3);
Tailwind
colors: {
  custom: {
    50: '#8799e5',
    500: '#4171d8',
    950: '#000000',
  },
}
SCSS
$custom: #4171d8;
$custom-light: #8799e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4171d8",
  "rgb": {
    "r": 65,
    "g": 113,
    "b": 216
  },
  "hsl": {
    "h": 220.927,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5696,
    "c": 0.1666,
    "h": 263.3
  },
  "luminance": 0.17892
}

Semantic roles & 50–950 ramp

primary
#4171D8
secondary
#DAC69B
accent
#B33FE9
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4171D8

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

Preview Lab → · Contrast checker → · Palette generator →

#4171D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva