#4170D4#4170D4

#4170D4 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.5% C 0.162 H 263.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4170D4
RGBrgb(65, 112, 212)
HSLhsl(221, 63%, 54%)
HSVhsv(221, 69%, 83%)
CMYKcmyk(69.3%, 47.2%, 0%, 16.9%)
CIE-LABlab(48.84, 17.19, -56.26)
CIE-LCHlch(48.84, 58.83, 286.99°)
OKLaboklab(56.48% -0.0191 -0.1613)
OKLCHoklch(56.48% 0.162 263.2)
XYZxyz(19.8536, 17.4636, 64.5991)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170D4 #D4A541
analogous
#41BAD4 #4170D4 #5C41D4
triadic
#4170D4 #D44170 #70D441
tetradic
#4170D4 #D441BA #D4A541 #41D45C
square
#4170D4 #D441BA #D4A541 #41D45C
split-complementary
#4170D4 #D45C41 #BAD441
monochromatic
#1D3C7E #2853B0 #4170D4 #7396DF #A5BBEB

Accessibility & contrast

On white

4.67
#4170D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#4170D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170D4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170D4#FFFFFF#000000##FFFFFF
##4170D41.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B7BD8
Deuteranopia (green-blind)
#176ED2
Tritanopia (blue-blind)
#008798
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4170d4;
/* rgb */ color: rgb(65, 112, 212);
/* oklch */ color: oklch(56.5% 0.162 263.2);
Tailwind
colors: {
  custom: {
    50: '#8698e2',
    500: '#4170d4',
    950: '#000000',
  },
}
SCSS
$custom: #4170d4;
$custom-light: #8698e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4170d4",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 212
  },
  "hsl": {
    "h": 220.816,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56478,
    "c": 0.1624,
    "h": 263.2
  },
  "luminance": 0.17466
}

Semantic roles & 50–950 ramp

primary
#4170D4
secondary
#D8C499
accent
#B242E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4170D4

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

Preview Lab → · Contrast checker → · Palette generator →

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