#4171D7#4171D7

#4171D7 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.9% C 0.165 H 263.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#4171D7
RGBrgb(65, 113, 215)
HSLhsl(221, 65%, 55%)
HSVhsv(221, 70%, 84%)
CMYKcmyk(69.8%, 47.4%, 0%, 15.7%)
CIE-LABlab(49.30, 17.64, -57.23)
CIE-LCHlch(49.30, 59.89, 287.13°)
OKLaboklab(56.89% -0.0196 -0.1641)
OKLCHoklch(56.89% 0.165 263.2)
XYZxyz(20.3465, 17.8383, 66.6476)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4171D7 #D7A741
analogous
#41BCD7 #4171D7 #5C41D7
triadic
#4171D7 #D74171 #71D741
tetradic
#4171D7 #D741BC #D7A741 #41D75C
square
#4171D7 #D741BC #D7A741 #41D75C
split-complementary
#4171D7 #D75C41 #BCD741
monochromatic
#1B3C82 #2654B5 #4171D7 #7497E2 #A6BDEC

Accessibility & contrast

On white

4.60
#4171D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#4171D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4171D7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4171D7#FFFFFF#000000##FFFFFF
##4171D71.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A7DDB
Deuteranopia (green-blind)
#136FD5
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4171d7;
/* rgb */ color: rgb(65, 113, 215);
/* oklch */ color: oklch(56.9% 0.165 263.2);
Tailwind
colors: {
  custom: {
    50: '#8799e4',
    500: '#4171d7',
    950: '#000000',
  },
}
SCSS
$custom: #4171d7;
$custom-light: #8799e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4171d7",
  "rgb": {
    "r": 65,
    "g": 113,
    "b": 215
  },
  "hsl": {
    "h": 220.8,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56891,
    "c": 0.16525,
    "h": 263.2
  },
  "luminance": 0.1784
}

Semantic roles & 50–950 ramp

primary
#4171D7
secondary
#D9C59A
accent
#B240E8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0D16
muted
#7D7E84

Preview Lab

Preview with #4171D7

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

Preview Lab → · Contrast checker → · Palette generator →

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