#4170BC#4170BC

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

Color values

HEX#4170BC
RGBrgb(65, 112, 188)
HSLhsl(217, 49%, 50%)
HSVhsv(217, 65%, 74%)
CMYKcmyk(65.4%, 40.4%, 0%, 26.3%)
CIE-LABlab(47.42, 8.62, -44.77)
CIE-LCHlch(47.42, 45.60, 280.90°)
OKLaboklab(54.93% -0.0235 -0.1275)
OKLCHoklch(54.93% 0.13 259.6)
XYZxyz(17.0480, 16.3414, 49.8230)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170BC #BC8D41
analogous
#41AEBC #4170BC #4F41BC
triadic
#4170BC #BC4170 #70BC41
tetradic
#4170BC #BC41AE #BC8D41 #41BC4F
square
#4170BC #BC41AE #BC8D41 #41BC4F
split-complementary
#4170BC #BC4F41 #AEBC41
monochromatic
#223A61 #31558F #4170BC #6E92CD #9BB4DC

Accessibility & contrast

On white

4.92
#4170BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#4170BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170BC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170BC#FFFFFF#000000##FFFFFF
##4170BC1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E77BF
Deuteranopia (green-blind)
#3B6BBA
Tritanopia (blue-blind)
#00818D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4170bc;
/* rgb */ color: rgb(65, 112, 188);
/* oklch */ color: oklch(54.9% 0.130 259.6);
Tailwind
colors: {
  custom: {
    50: '#8298d0',
    500: '#4170bc',
    950: '#000000',
  },
}
SCSS
$custom: #4170bc;
$custom-light: #8298d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4170bc",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 188
  },
  "hsl": {
    "h": 217.073,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54926,
    "c": 0.12965,
    "h": 259.6
  },
  "luminance": 0.16343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4170BC

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

Preview Lab → · Contrast checker → · Palette generator →

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