#4171BE#4171BE

#4171BE is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.3% C 0.131 H 259.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4171BE
RGBrgb(65, 113, 190)
HSLhsl(217, 49%, 50%)
HSVhsv(217, 66%, 75%)
CMYKcmyk(65.8%, 40.5%, 0%, 25.5%)
CIE-LABlab(47.82, 8.71, -45.30)
CIE-LCHlch(47.82, 46.13, 280.88°)
OKLaboklab(55.27% -0.024 -0.129)
OKLCHoklch(55.27% 0.131 259.4)
XYZxyz(17.3760, 16.6501, 51.0033)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4171BE #BE8E41
analogous
#41B0BE #4171BE #4F41BE
triadic
#4171BE #BE4171 #71BE41
tetradic
#4171BE #BE41B0 #BE8E41 #41BE4F
square
#4171BE #BE41B0 #BE8E41 #41BE4F
split-complementary
#4171BE #BE4F41 #B0BE41
monochromatic
#223B63 #315690 #4171BE #6F93CE #9CB5DD

Accessibility & contrast

On white

4.85
#4171BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#4171BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4171BE
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4171BE#FFFFFF#000000##FFFFFF
##4171BE1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E78C1
Deuteranopia (green-blind)
#3B6CBC
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4171be;
/* rgb */ color: rgb(65, 113, 190);
/* oklch */ color: oklch(55.3% 0.131 259.4);
Tailwind
colors: {
  custom: {
    50: '#8299d2',
    500: '#4171be',
    950: '#000000',
  },
}
SCSS
$custom: #4171be;
$custom-light: #8299d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4171be",
  "rgb": {
    "r": 65,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 216.96,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.5527,
    "c": 0.13125,
    "h": 259.4
  },
  "luminance": 0.16652
}

Semantic roles & 50–950 ramp

primary
#4171BE
secondary
#C9B491
accent
#A44FD9
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #4171BE

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

Preview Lab → · Contrast checker → · Palette generator →

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