#4170BD#4170BD

#4170BD is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.0% C 0.131 H 259.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#4170BD
RGBrgb(65, 112, 189)
HSLhsl(217, 49%, 50%)
HSVhsv(217, 66%, 74%)
CMYKcmyk(65.6%, 40.7%, 0%, 25.9%)
CIE-LABlab(47.48, 8.97, -45.26)
CIE-LCHlch(47.48, 46.14, 281.21°)
OKLaboklab(54.99% -0.0233 -0.1289)
OKLCHoklch(54.99% 0.131 259.8)
XYZxyz(17.1562, 16.3846, 50.3927)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170BD #BD8E41
analogous
#41AEBD #4170BD #5041BD
triadic
#4170BD #BD4170 #70BD41
tetradic
#4170BD #BD41AE #BD8E41 #41BD50
square
#4170BD #BD41AE #BD8E41 #41BD50
split-complementary
#4170BD #BD5041 #AEBD41
monochromatic
#223A62 #31558F #4170BD #6E92CD #9CB4DD

Accessibility & contrast

On white

4.91
#4170BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#4170BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170BD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170BD#FFFFFF#000000##FFFFFF
##4170BD1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C0
Deuteranopia (green-blind)
#3A6BBB
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4170bd;
/* rgb */ color: rgb(65, 112, 189);
/* oklch */ color: oklch(55.0% 0.131 259.8);
Tailwind
colors: {
  custom: {
    50: '#8298d1',
    500: '#4170bd',
    950: '#000000',
  },
}
SCSS
$custom: #4170bd;
$custom-light: #8298d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4170bd",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 189
  },
  "hsl": {
    "h": 217.258,
    "s": 48.819,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54988,
    "c": 0.13102,
    "h": 259.8
  },
  "luminance": 0.16386
}

Semantic roles & 50–950 ramp

primary
#4170BD
secondary
#C9B491
accent
#A44FD8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #4170BD

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

Preview Lab → · Contrast checker → · Palette generator →

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