#4171D2#4171D2

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

Color values

HEX#4171D2
RGBrgb(65, 113, 210)
HSLhsl(220, 62%, 54%)
HSVhsv(220, 69%, 82%)
CMYKcmyk(69%, 46.2%, 0%, 17.6%)
CIE-LABlab(48.99, 15.84, -54.88)
CIE-LCHlch(48.99, 57.13, 286.10°)
OKLaboklab(56.55% -0.0203 -0.1572)
OKLCHoklch(56.55% 0.159 262.6)
XYZxyz(19.7138, 17.5852, 63.3156)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4171D2 #D2A241
analogous
#41BAD2 #4171D2 #5A41D2
triadic
#4171D2 #D24171 #71D241
tetradic
#4171D2 #D241BA #D2A241 #41D25A
square
#4171D2 #D241BA #D2A241 #41D25A
split-complementary
#4171D2 #D25A41 #BAD241
monochromatic
#1D3C7B #2955AD #4171D2 #7296DE #A4BBE9

Accessibility & contrast

On white

4.65
#4171D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#4171D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4171D2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4171D2#FFFFFF#000000##FFFFFF
##4171D21.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F7CD6
Deuteranopia (green-blind)
#206ED0
Tritanopia (blue-blind)
#008897
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4171d2;
/* rgb */ color: rgb(65, 113, 210);
/* oklch */ color: oklch(56.6% 0.159 262.6);
Tailwind
colors: {
  custom: {
    50: '#8699e0',
    500: '#4171d2',
    950: '#000000',
  },
}
SCSS
$custom: #4171d2;
$custom-light: #8699e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4171d2",
  "rgb": {
    "r": 65,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 220.138,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56554,
    "c": 0.15851,
    "h": 262.6
  },
  "luminance": 0.17587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4171D2

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

Preview Lab → · Contrast checker → · Palette generator →

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