#4170CD#4170CD

#4170CD is a mid, vivid blue. Relative luminance 0.171; OKLCH L 56.0% C 0.153 H 262.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#4170CD
RGBrgb(65, 112, 205)
HSLhsl(220, 58%, 53%)
HSVhsv(220, 68%, 80%)
CMYKcmyk(68.3%, 45.4%, 0%, 19.6%)
CIE-LABlab(48.41, 14.68, -52.96)
CIE-LCHlch(48.41, 54.96, 285.49°)
OKLaboklab(56.01% -0.0202 -0.1516)
OKLCHoklch(56.01% 0.153 262.4)
XYZxyz(18.9897, 17.1180, 60.0491)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170CD #CD9E41
analogous
#41B6CD #4170CD #5841CD
triadic
#4170CD #CD4170 #70CD41
tetradic
#4170CD #CD41B6 #CD9E41 #41CD58
square
#4170CD #CD41B6 #CD9E41 #41CD58
split-complementary
#4170CD #CD5841 #B6CD41
monochromatic
#1F3C75 #2C54A5 #4170CD #7194DA #A2B9E6

Accessibility & contrast

On white

4.75
#4170CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#4170CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170CD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170CD#FFFFFF#000000##FFFFFF
##4170CD1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#417AD1
Deuteranopia (green-blind)
#266DCB
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4170cd;
/* rgb */ color: rgb(65, 112, 205);
/* oklch */ color: oklch(56.0% 0.153 262.4);
Tailwind
colors: {
  custom: {
    50: '#8598dd',
    500: '#4170cd',
    950: '#000000',
  },
}
SCSS
$custom: #4170cd;
$custom-light: #8598dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4170cd",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 219.857,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5601,
    "c": 0.1529,
    "h": 262.4
  },
  "luminance": 0.1712
}

Semantic roles & 50–950 ramp

primary
#4170CD
secondary
#D3BF97
accent
#AD46E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4170CD

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

Preview Lab → · Contrast checker → · Palette generator →

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