#4170CE#4170CE

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

Color values

HEX#4170CE
RGBrgb(65, 112, 206)
HSLhsl(220, 59%, 53%)
HSVhsv(220, 68%, 81%)
CMYKcmyk(68.4%, 45.6%, 0%, 19.2%)
CIE-LABlab(48.47, 15.04, -53.44)
CIE-LCHlch(48.47, 55.51, 285.72°)
OKLaboklab(56.08% -0.0201 -0.153)
OKLCHoklch(56.08% 0.154 262.5)
XYZxyz(19.1108, 17.1665, 60.6869)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170CE #CE9F41
analogous
#41B6CE #4170CE #5841CE
triadic
#4170CE #CE4170 #70CE41
tetradic
#4170CE #CE41B6 #CE9F41 #41CE58
square
#4170CE #CE41B6 #CE9F41 #41CE58
split-complementary
#4170CE #CE5841 #B6CE41
monochromatic
#1E3C76 #2B54A7 #4170CE #7295DB #A2B9E7

Accessibility & contrast

On white

4.74
#4170CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#4170CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170CE
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170CE#FFFFFF#000000##FFFFFF
##4170CE1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#417AD2
Deuteranopia (green-blind)
#256DCC
Tritanopia (blue-blind)
#008695
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4170ce;
/* rgb */ color: rgb(65, 112, 206);
/* oklch */ color: oklch(56.1% 0.154 262.5);
Tailwind
colors: {
  custom: {
    50: '#8598dd',
    500: '#4170ce',
    950: '#000000',
  },
}
SCSS
$custom: #4170ce;
$custom-light: #8598dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4170ce",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 206
  },
  "hsl": {
    "h": 220,
    "s": 58.996,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56076,
    "c": 0.15427,
    "h": 262.5
  },
  "luminance": 0.17168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4170CE

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

Preview Lab → · Contrast checker → · Palette generator →

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