#4170BF#4170BF

#4170BF is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.1% C 0.134 H 260.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#4170BF
RGBrgb(65, 112, 191)
HSLhsl(218, 50%, 50%)
HSVhsv(218, 66%, 75%)
CMYKcmyk(66%, 41.4%, 0%, 25.1%)
CIE-LABlab(47.59, 9.68, -46.24)
CIE-LCHlch(47.59, 47.24, 281.83°)
OKLaboklab(55.11% -0.0228 -0.1318)
OKLCHoklch(55.11% 0.134 260.2)
XYZxyz(17.3748, 16.4721, 51.5439)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170BF #BF9041
analogous
#41AFBF #4170BF #5141BF
triadic
#4170BF #BF4170 #70BF41
tetradic
#4170BF #BF41AF #BF9041 #41BF51
square
#4170BF #BF41AF #BF9041 #41BF51
split-complementary
#4170BF #BF5141 #AFBF41
monochromatic
#223A64 #315592 #4170BF #6F92CE #9DB5DE

Accessibility & contrast

On white

4.89
#4170BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#4170BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170BF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170BF#FFFFFF#000000##FFFFFF
##4170BF1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C77C2
Deuteranopia (green-blind)
#386BBD
Tritanopia (blue-blind)
#00828E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4170bf;
/* rgb */ color: rgb(65, 112, 191);
/* oklch */ color: oklch(55.1% 0.134 260.2);
Tailwind
colors: {
  custom: {
    50: '#8298d3',
    500: '#4170bf',
    950: '#000000',
  },
}
SCSS
$custom: #4170bf;
$custom-light: #8298d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4170bf",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 191
  },
  "hsl": {
    "h": 217.619,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55111,
    "c": 0.13376,
    "h": 260.2
  },
  "luminance": 0.16474
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4170BF

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

Preview Lab → · Contrast checker → · Palette generator →

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