#4170D6#4170D6

#4170D6 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.6% C 0.165 H 263.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#4170D6
RGBrgb(65, 112, 214)
HSLhsl(221, 65%, 55%)
HSVhsv(221, 70%, 84%)
CMYKcmyk(69.6%, 47.7%, 0%, 16.1%)
CIE-LABlab(48.96, 17.91, -57.20)
CIE-LCHlch(48.96, 59.94, 287.38°)
OKLaboklab(56.62% -0.0188 -0.164)
OKLCHoklch(56.62% 0.165 263.4)
XYZxyz(20.1075, 17.5651, 65.9360)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170D6 #D6A741
analogous
#41BAD6 #4170D6 #5D41D6
triadic
#4170D6 #D64170 #70D641
tetradic
#4170D6 #D641BA #D6A741 #41D65D
square
#4170D6 #D641BA #D6A741 #41D65D
split-complementary
#4170D6 #D65D41 #BAD641
monochromatic
#1C3C81 #2753B3 #4170D6 #7396E1 #A6BCEC

Accessibility & contrast

On white

4.65
#4170D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#4170D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4170D6
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170D6#FFFFFF#000000##FFFFFF
##4170D61.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#397CDA
Deuteranopia (green-blind)
#116ED4
Tritanopia (blue-blind)
#008899
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4170d6;
/* rgb */ color: rgb(65, 112, 214);
/* oklch */ color: oklch(56.6% 0.165 263.4);
Tailwind
colors: {
  custom: {
    50: '#8798e3',
    500: '#4170d6',
    950: '#000000',
  },
}
SCSS
$custom: #4170d6;
$custom-light: #8798e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4170d6",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 214
  },
  "hsl": {
    "h": 221.074,
    "s": 64.502,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56615,
    "c": 0.1651,
    "h": 263.4
  },
  "luminance": 0.17567
}

Semantic roles & 50–950 ramp

primary
#4170D6
secondary
#D9C59A
accent
#B340E7
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0D15
muted
#7D7E84

Preview Lab

Preview with #4170D6

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

Preview Lab → · Contrast checker → · Palette generator →

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