#4170C7#4170C7

#4170C7 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.6% C 0.145 H 261.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4170C7
RGBrgb(65, 112, 199)
HSLhsl(219, 54%, 52%)
HSVhsv(219, 67%, 78%)
CMYKcmyk(67.3%, 43.7%, 0%, 22%)
CIE-LABlab(48.05, 12.53, -50.10)
CIE-LCHlch(48.05, 51.65, 284.04°)
OKLaboklab(55.62% -0.0213 -0.1431)
OKLCHoklch(55.62% 0.145 261.5)
XYZxyz(18.2793, 16.8339, 56.3077)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170C7 #C79841
analogous
#41B3C7 #4170C7 #5541C7
triadic
#4170C7 #C74170 #70C741
tetradic
#4170C7 #C741B3 #C79841 #41C755
square
#4170C7 #C741B3 #C79841 #41C755
split-complementary
#4170C7 #C75541 #B3C741
monochromatic
#203B6D #2E559D #4170C7 #7094D5 #A0B7E3

Accessibility & contrast

On white

4.81
#4170C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#4170C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170C7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170C7#FFFFFF#000000##FFFFFF
##4170C71.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4679CA
Deuteranopia (green-blind)
#2F6CC5
Tritanopia (blue-blind)
#008492
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4170c7;
/* rgb */ color: rgb(65, 112, 199);
/* oklch */ color: oklch(55.6% 0.145 261.5);
Tailwind
colors: {
  custom: {
    50: '#8498d8',
    500: '#4170c7',
    950: '#000000',
  },
}
SCSS
$custom: #4170c7;
$custom-light: #8498d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4170c7",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 199
  },
  "hsl": {
    "h": 218.955,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55618,
    "c": 0.14472,
    "h": 261.5
  },
  "luminance": 0.16836
}

Semantic roles & 50–950 ramp

primary
#4170C7
secondary
#CFBB95
accent
#AA4ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4170C7

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

Preview Lab → · Contrast checker → · Palette generator →

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