#4170CF#4170CF

#4170CF is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.1% C 0.156 H 262.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#4170CF
RGBrgb(65, 112, 207)
HSLhsl(220, 60%, 53%)
HSVhsv(220, 69%, 81%)
CMYKcmyk(68.6%, 45.9%, 0%, 18.8%)
CIE-LABlab(48.53, 15.39, -53.91)
CIE-LCHlch(48.53, 56.07, 285.94°)
OKLaboklab(56.14% -0.0199 -0.1543)
OKLCHoklch(56.14% 0.156 262.7)
XYZxyz(19.2326, 17.2152, 61.3287)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170CF #CFA041
analogous
#41B7CF #4170CF #5941CF
triadic
#4170CF #CF4170 #70CF41
tetradic
#4170CF #CF41B7 #CFA041 #41CF59
square
#4170CF #CF41B7 #CFA041 #41CF59
split-complementary
#4170CF #CF5941 #B7CF41
monochromatic
#1E3C77 #2B54A8 #4170CF #7295DB #A3BAE8

Accessibility & contrast

On white

4.73
#4170CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#4170CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170CF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170CF#FFFFFF#000000##FFFFFF
##4170CF1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#407AD3
Deuteranopia (green-blind)
#236DCD
Tritanopia (blue-blind)
#008695
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4170cf;
/* rgb */ color: rgb(65, 112, 207);
/* oklch */ color: oklch(56.1% 0.156 262.7);
Tailwind
colors: {
  custom: {
    50: '#8598de',
    500: '#4170cf',
    950: '#000000',
  },
}
SCSS
$custom: #4170cf;
$custom-light: #8598de;
$custom-dark: #000000;
JSON
{
  "hex": "#4170cf",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 207
  },
  "hsl": {
    "h": 220.141,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56142,
    "c": 0.15563,
    "h": 262.7
  },
  "luminance": 0.17217
}

Semantic roles & 50–950 ramp

primary
#4170CF
secondary
#D4C097
accent
#AF45E3
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4170CF

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

Preview Lab → · Contrast checker → · Palette generator →

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