#4171DC#4171DC

#4171DC is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.2% C 0.172 H 263.7°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4171DC
RGBrgb(65, 113, 220)
HSLhsl(221, 69%, 56%)
HSVhsv(221, 70%, 86%)
CMYKcmyk(70.5%, 48.6%, 0%, 13.7%)
CIE-LABlab(49.62, 19.44, -59.55)
CIE-LCHlch(49.62, 62.64, 288.08°)
OKLaboklab(57.24% -0.0189 -0.1709)
OKLCHoklch(57.24% 0.172 263.7)
XYZxyz(20.9988, 18.0992, 70.0831)
Luminance0.1810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4171DC #DCAC41
analogous
#41BFDC #4171DC #5E41DC
triadic
#4171DC #DC4171 #71DC41
tetradic
#4171DC #DC41BF #DCAC41 #41DC5E
square
#4171DC #DC41BF #DCAC41 #41DC5E
split-complementary
#4171DC #DC5E41 #BFDC41
monochromatic
#193C89 #2353BD #4171DC #7598E6 #A8BEEF

Accessibility & contrast

On white

4.55
#4171DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#4171DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4171DC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4171DC#FFFFFF#000000##000000
##4171DC1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#357EE0
Deuteranopia (green-blind)
#006FDA
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4171dc;
/* rgb */ color: rgb(65, 113, 220);
/* oklch */ color: oklch(57.2% 0.172 263.7);
Tailwind
colors: {
  custom: {
    50: '#8899e7',
    500: '#4171dc',
    950: '#000000',
  },
}
SCSS
$custom: #4171dc;
$custom-light: #8899e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4171dc",
  "rgb": {
    "r": 65,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 221.419,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57235,
    "c": 0.17196,
    "h": 263.7
  },
  "luminance": 0.18101
}

Semantic roles & 50–950 ramp

primary
#4171DC
secondary
#DDC99C
accent
#B53CEC
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4171DC

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

Preview Lab → · Contrast checker → · Palette generator →

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