#4170D5#4170D5

#4170D5 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.5% C 0.164 H 263.3°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#4170D5
RGBrgb(65, 112, 213)
HSLhsl(221, 64%, 55%)
HSVhsv(221, 69%, 84%)
CMYKcmyk(69.5%, 47.4%, 0%, 16.5%)
CIE-LABlab(48.90, 17.55, -56.73)
CIE-LCHlch(48.90, 59.38, 287.19°)
OKLaboklab(56.55% -0.019 -0.1626)
OKLCHoklch(56.55% 0.164 263.3)
XYZxyz(19.9801, 17.5142, 65.2655)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170D5 #D5A641
analogous
#41BAD5 #4170D5 #5C41D5
triadic
#4170D5 #D54170 #70D541
tetradic
#4170D5 #D541BA #D5A641 #41D55C
square
#4170D5 #D541BA #D5A641 #41D55C
split-complementary
#4170D5 #D55C41 #BAD541
monochromatic
#1C3C7F #2753B2 #4170D5 #7396E0 #A5BBEB

Accessibility & contrast

On white

4.66
#4170D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#4170D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4170D5
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170D5#FFFFFF#000000##FFFFFF
##4170D51.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A7BD9
Deuteranopia (green-blind)
#146ED3
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4170d5;
/* rgb */ color: rgb(65, 112, 213);
/* oklch */ color: oklch(56.5% 0.164 263.3);
Tailwind
colors: {
  custom: {
    50: '#8698e2',
    500: '#4170d5',
    950: '#000000',
  },
}
SCSS
$custom: #4170d5;
$custom-light: #8698e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4170d5",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 213
  },
  "hsl": {
    "h": 220.946,
    "s": 63.793,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56546,
    "c": 0.16375,
    "h": 263.3
  },
  "luminance": 0.17516
}

Semantic roles & 50–950 ramp

primary
#4170D5
secondary
#D8C49A
accent
#B241E7
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0D0D15
muted
#7D7E83

Preview Lab

Preview with #4170D5

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

Preview Lab → · Contrast checker → · Palette generator →

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