#4170D8#4170D8

#4170D8 is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.8% C 0.168 H 263.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#4170D8
RGBrgb(65, 112, 216)
HSLhsl(221, 66%, 55%)
HSVhsv(221, 70%, 85%)
CMYKcmyk(69.9%, 48.1%, 0%, 15.3%)
CIE-LABlab(49.09, 18.63, -58.13)
CIE-LCHlch(49.09, 61.04, 287.77°)
OKLaboklab(56.75% -0.0186 -0.1668)
OKLCHoklch(56.75% 0.168 263.6)
XYZxyz(20.3644, 17.6679, 67.2894)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170D8 #D8A941
analogous
#41BBD8 #4170D8 #5E41D8
triadic
#4170D8 #D84170 #70D841
tetradic
#4170D8 #D841BB #D8A941 #41D85E
square
#4170D8 #D841BB #D8A941 #41D85E
split-complementary
#4170D8 #D85E41 #BBD841
monochromatic
#1B3C84 #2553B6 #4170D8 #7496E2 #A7BCED

Accessibility & contrast

On white

4.63
#4170D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#4170D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4170D8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170D8#FFFFFF#000000##FFFFFF
##4170D81.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#377CDC
Deuteranopia (green-blind)
#086ED6
Tritanopia (blue-blind)
#00889A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4170d8;
/* rgb */ color: rgb(65, 112, 216);
/* oklch */ color: oklch(56.8% 0.168 263.6);
Tailwind
colors: {
  custom: {
    50: '#8798e5',
    500: '#4170d8',
    950: '#000000',
  },
}
SCSS
$custom: #4170d8;
$custom-light: #8798e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4170d8",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 216
  },
  "hsl": {
    "h": 221.325,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56752,
    "c": 0.16779,
    "h": 263.6
  },
  "luminance": 0.1767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4170D8

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

Preview Lab → · Contrast checker → · Palette generator →

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