#4170DC#4170DC

#4170DC is a mid, vivid blue. Relative luminance 0.179; OKLCH L 57.0% C 0.173 H 264.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4170DC
RGBrgb(65, 112, 220)
HSLhsl(222, 69%, 56%)
HSVhsv(222, 70%, 86%)
CMYKcmyk(70.5%, 49.1%, 0%, 13.7%)
CIE-LABlab(49.35, 20.06, -59.98)
CIE-LCHlch(49.35, 63.25, 288.49°)
OKLaboklab(57.03% -0.018 -0.1722)
OKLCHoklch(57.03% 0.173 264)
XYZxyz(20.8878, 17.8773, 70.0461)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170DC #DCAD41
analogous
#41BEDC #4170DC #5F41DC
triadic
#4170DC #DC4170 #70DC41
tetradic
#4170DC #DC41BE #DCAD41 #41DC5F
square
#4170DC #DC41BE #DCAD41 #41DC5F
split-complementary
#4170DC #DC5F41 #BEDC41
monochromatic
#193B89 #2352BD #4170DC #7597E6 #A8BEEF

Accessibility & contrast

On white

4.59
#4170DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#4170DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4170DC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170DC#FFFFFF#000000##FFFFFF
##4170DC1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#327DE0
Deuteranopia (green-blind)
#006FDA
Tritanopia (blue-blind)
#008A9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4170dc;
/* rgb */ color: rgb(65, 112, 220);
/* oklch */ color: oklch(57.0% 0.173 264.0);
Tailwind
colors: {
  custom: {
    50: '#8898e7',
    500: '#4170dc',
    950: '#000000',
  },
}
SCSS
$custom: #4170dc;
$custom-light: #8898e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4170dc",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 220
  },
  "hsl": {
    "h": 221.806,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5703,
    "c": 0.17316,
    "h": 264
  },
  "luminance": 0.17879
}

Semantic roles & 50–950 ramp

primary
#4170DC
secondary
#DDC99C
accent
#B63CEC
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4170DC

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

Preview Lab → · Contrast checker → · Palette generator →

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