#4171BF#4171BF

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

Color values

HEX#4171BF
RGBrgb(65, 113, 191)
HSLhsl(217, 50%, 50%)
HSVhsv(217, 66%, 75%)
CMYKcmyk(66%, 40.8%, 0%, 25.1%)
CIE-LABlab(47.87, 9.06, -45.79)
CIE-LCHlch(47.87, 46.67, 281.19°)
OKLaboklab(55.33% -0.0238 -0.1305)
OKLCHoklch(55.33% 0.133 259.6)
XYZxyz(17.4857, 16.6940, 51.5809)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4171BF #BF8F41
analogous
#41B0BF #4171BF #5041BF
triadic
#4171BF #BF4171 #71BF41
tetradic
#4171BF #BF41B0 #BF8F41 #41BF50
square
#4171BF #BF41B0 #BF8F41 #41BF50
split-complementary
#4171BF #BF5041 #B0BF41
monochromatic
#223B64 #315692 #4171BF #6F93CE #9DB5DE

Accessibility & contrast

On white

4.84
#4171BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4171BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4171BF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4171BF#FFFFFF#000000##FFFFFF
##4171BF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D78C2
Deuteranopia (green-blind)
#3A6CBD
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4171bf;
/* rgb */ color: rgb(65, 113, 191);
/* oklch */ color: oklch(55.3% 0.133 259.6);
Tailwind
colors: {
  custom: {
    50: '#8299d3',
    500: '#4171bf',
    950: '#000000',
  },
}
SCSS
$custom: #4171bf;
$custom-light: #8299d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4171bf",
  "rgb": {
    "r": 65,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 217.143,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55331,
    "c": 0.13262,
    "h": 259.6
  },
  "luminance": 0.16696
}

Semantic roles & 50–950 ramp

primary
#4171BF
secondary
#CAB592
accent
#A44FD9
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4171BF

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

Preview Lab → · Contrast checker → · Palette generator →

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