#4170D3#4170D3

#4170D3 is a mid, vivid blue. Relative luminance 0.174; OKLCH L 56.4% C 0.161 H 263.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#4170D3
RGBrgb(65, 112, 211)
HSLhsl(221, 62%, 54%)
HSVhsv(221, 69%, 83%)
CMYKcmyk(69.2%, 46.9%, 0%, 17.3%)
CIE-LABlab(48.78, 16.83, -55.80)
CIE-LCHlch(48.78, 58.28, 286.79°)
OKLaboklab(56.41% -0.0193 -0.1599)
OKLCHoklch(56.41% 0.161 263.1)
XYZxyz(19.7279, 17.4133, 63.9368)
Luminance0.1741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170D3 #D3A441
analogous
#41B9D3 #4170D3 #5B41D3
triadic
#4170D3 #D34170 #70D341
tetradic
#4170D3 #D341B9 #D3A441 #41D35B
square
#4170D3 #D341B9 #D3A441 #41D35B
split-complementary
#4170D3 #D35B41 #B9D341
monochromatic
#1D3C7D #2854AE #4170D3 #7395DF #A4BBEA

Accessibility & contrast

On white

4.68
#4170D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#4170D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170D3
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170D3#FFFFFF#000000##FFFFFF
##4170D31.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C7BD7
Deuteranopia (green-blind)
#1A6ED1
Tritanopia (blue-blind)
#008797
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4170d3;
/* rgb */ color: rgb(65, 112, 211);
/* oklch */ color: oklch(56.4% 0.161 263.1);
Tailwind
colors: {
  custom: {
    50: '#8698e1',
    500: '#4170d3',
    950: '#000000',
  },
}
SCSS
$custom: #4170d3;
$custom-light: #8698e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4170d3",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 211
  },
  "hsl": {
    "h": 220.685,
    "s": 62.393,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56411,
    "c": 0.16105,
    "h": 263.1
  },
  "luminance": 0.17415
}

Semantic roles & 50–950 ramp

primary
#4170D3
secondary
#D7C399
accent
#B142E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4170D3

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

Preview Lab → · Contrast checker → · Palette generator →

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