#4170CC#4170CC

#4170CC is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.152 H 262.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4170CC
RGBrgb(65, 112, 204)
HSLhsl(220, 58%, 53%)
HSVhsv(220, 68%, 80%)
CMYKcmyk(68.1%, 45.1%, 0%, 20%)
CIE-LABlab(48.35, 14.32, -52.49)
CIE-LCHlch(48.35, 54.41, 285.26°)
OKLaboklab(55.94% -0.0204 -0.1502)
OKLCHoklch(55.94% 0.152 262.3)
XYZxyz(18.8694, 17.0699, 59.4154)
Luminance0.1707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170CC #CC9D41
analogous
#41B6CC #4170CC #5741CC
triadic
#4170CC #CC4170 #70CC41
tetradic
#4170CC #CC41B6 #CC9D41 #41CC57
square
#4170CC #CC41B6 #CC9D41 #41CC57
split-complementary
#4170CC #CC5741 #B6CC41
monochromatic
#1F3C74 #2C54A4 #4170CC #7194D9 #A1B9E6

Accessibility & contrast

On white

4.76
#4170CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#4170CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170CC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170CC#FFFFFF#000000##FFFFFF
##4170CC1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#427ACF
Deuteranopia (green-blind)
#286DCA
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4170cc;
/* rgb */ color: rgb(65, 112, 204);
/* oklch */ color: oklch(55.9% 0.152 262.3);
Tailwind
colors: {
  custom: {
    50: '#8598dc',
    500: '#4170cc',
    950: '#000000',
  },
}
SCSS
$custom: #4170cc;
$custom-light: #8598dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4170cc",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 204
  },
  "hsl": {
    "h": 219.712,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55944,
    "c": 0.15155,
    "h": 262.3
  },
  "luminance": 0.17072
}

Semantic roles & 50–950 ramp

primary
#4170CC
secondary
#D3BE96
accent
#AD47E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4170CC

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

Preview Lab → · Contrast checker → · Palette generator →

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