#4170D2#4170D2

#4170D2 is a mid, vivid blue. Relative luminance 0.174; OKLCH L 56.3% C 0.160 H 263.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#4170D2
RGBrgb(65, 112, 210)
HSLhsl(221, 62%, 54%)
HSVhsv(221, 69%, 82%)
CMYKcmyk(69%, 46.7%, 0%, 17.6%)
CIE-LABlab(48.71, 16.47, -55.33)
CIE-LCHlch(48.71, 57.73, 286.58°)
OKLaboklab(56.34% -0.0194 -0.1585)
OKLCHoklch(56.34% 0.16 263)
XYZxyz(19.6029, 17.3633, 63.2786)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170D2 #D2A341
analogous
#41B8D2 #4170D2 #5B41D2
triadic
#4170D2 #D24170 #70D241
tetradic
#4170D2 #D241B8 #D2A341 #41D25B
square
#4170D2 #D241B8 #D2A341 #41D25B
split-complementary
#4170D2 #D25B41 #B8D241
monochromatic
#1D3C7B #2954AD #4170D2 #7295DE #A4BAE9

Accessibility & contrast

On white

4.69
#4170D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#4170D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170D2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170D2#FFFFFF#000000##FFFFFF
##4170D21.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4170d2;
/* rgb */ color: rgb(65, 112, 210);
/* oklch */ color: oklch(56.3% 0.160 263.0);
Tailwind
colors: {
  custom: {
    50: '#8698e0',
    500: '#4170d2',
    950: '#000000',
  },
}
SCSS
$custom: #4170d2;
$custom-light: #8698e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4170d2",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 210
  },
  "hsl": {
    "h": 220.552,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56343,
    "c": 0.1597,
    "h": 263
  },
  "luminance": 0.17365
}

Semantic roles & 50–950 ramp

primary
#4170D2
secondary
#D6C298
accent
#B043E5
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4170D2

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

Preview Lab → · Contrast checker → · Palette generator →

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