#4171BD#4171BD

#4171BD is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.2% C 0.130 H 259.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#4171BD
RGBrgb(65, 113, 189)
HSLhsl(217, 49%, 50%)
HSVhsv(217, 66%, 74%)
CMYKcmyk(65.6%, 40.2%, 0%, 25.9%)
CIE-LABlab(47.76, 8.35, -44.81)
CIE-LCHlch(47.76, 45.58, 280.56°)
OKLaboklab(55.21% -0.0243 -0.1276)
OKLCHoklch(55.21% 0.13 259.2)
XYZxyz(17.2671, 16.6065, 50.4296)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4171BD #BD8D41
analogous
#41AFBD #4171BD #4F41BD
triadic
#4171BD #BD4171 #71BD41
tetradic
#4171BD #BD41AF #BD8D41 #41BD4F
square
#4171BD #BD41AF #BD8D41 #41BD4F
split-complementary
#4171BD #BD4F41 #AFBD41
monochromatic
#223B62 #31568F #4171BD #6E93CD #9CB5DD

Accessibility & contrast

On white

4.86
#4171BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#4171BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4171BD
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4171BD#FFFFFF#000000##FFFFFF
##4171BD1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F78C0
Deuteranopia (green-blind)
#3C6CBB
Tritanopia (blue-blind)
#00828E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4171bd;
/* rgb */ color: rgb(65, 113, 189);
/* oklch */ color: oklch(55.2% 0.130 259.2);
Tailwind
colors: {
  custom: {
    50: '#8299d1',
    500: '#4171bd',
    950: '#000000',
  },
}
SCSS
$custom: #4171bd;
$custom-light: #8299d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4171bd",
  "rgb": {
    "r": 65,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 216.774,
    "s": 48.819,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55209,
    "c": 0.12989,
    "h": 259.2
  },
  "luminance": 0.16608
}

Semantic roles & 50–950 ramp

primary
#4171BD
secondary
#C9B391
accent
#A34FD8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #4171BD

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

Preview Lab → · Contrast checker → · Palette generator →

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