#4170BB#4170BB

#4170BB is a mid, vivid blue. Relative luminance 0.163; OKLCH L 54.9% C 0.128 H 259.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#4170BB
RGBrgb(65, 112, 187)
HSLhsl(217, 48%, 49%)
HSVhsv(217, 65%, 73%)
CMYKcmyk(65.2%, 40.1%, 0%, 26.7%)
CIE-LABlab(47.36, 8.27, -44.28)
CIE-LCHlch(47.36, 45.05, 280.57°)
OKLaboklab(54.86% -0.0237 -0.1261)
OKLCHoklch(54.86% 0.128 259.4)
XYZxyz(16.9406, 16.2984, 49.2572)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170BB #BB8C41
analogous
#41ADBB #4170BB #4F41BB
triadic
#4170BB #BB4170 #70BB41
tetradic
#4170BB #BB41AD #BB8C41 #41BB4F
square
#4170BB #BB41AD #BB8C41 #41BB4F
split-complementary
#4170BB #BB4F41 #ADBB41
monochromatic
#213A60 #31558E #4170BB #6D92CC #9AB4DC

Accessibility & contrast

On white

4.93
#4170BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#4170BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170BB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170BB#FFFFFF#000000##FFFFFF
##4170BB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BE
Deuteranopia (green-blind)
#3C6BB9
Tritanopia (blue-blind)
#00818C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4170bb;
/* rgb */ color: rgb(65, 112, 187);
/* oklch */ color: oklch(54.9% 0.128 259.4);
Tailwind
colors: {
  custom: {
    50: '#8298d0',
    500: '#4170bb',
    950: '#000000',
  },
}
SCSS
$custom: #4170bb;
$custom-light: #8298d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4170bb",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 187
  },
  "hsl": {
    "h": 216.885,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54865,
    "c": 0.12829,
    "h": 259.4
  },
  "luminance": 0.163
}

Semantic roles & 50–950 ramp

primary
#4170BB
secondary
#C8B290
accent
#A450D8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #4170BB

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

Preview Lab → · Contrast checker → · Palette generator →

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