#4170DB#4170DB

#4170DB is a mid, vivid blue. Relative luminance 0.178; OKLCH L 57.0% C 0.172 H 263.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#4170DB
RGBrgb(65, 112, 219)
HSLhsl(222, 68%, 56%)
HSVhsv(222, 70%, 86%)
CMYKcmyk(70.3%, 48.9%, 0%, 14.1%)
CIE-LABlab(49.28, 19.70, -59.52)
CIE-LCHlch(49.28, 62.70, 288.32°)
OKLaboklab(56.96% -0.0182 -0.1709)
OKLCHoklch(56.96% 0.172 263.9)
XYZxyz(20.7558, 17.8245, 69.3507)
Luminance0.1783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170DB #DBAC41
analogous
#41BDDB #4170DB #5F41DB
triadic
#4170DB #DB4170 #70DB41
tetradic
#4170DB #DB41BD #DBAC41 #41DB5F
square
#4170DB #DB41BD #DBAC41 #41DB5F
split-complementary
#4170DB #DB5F41 #BDDB41
monochromatic
#1A3B88 #2352BB #4170DB #7497E5 #A8BDEE

Accessibility & contrast

On white

4.60
#4170DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#4170DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4170DB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170DB#FFFFFF#000000##FFFFFF
##4170DB1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#337DDF
Deuteranopia (green-blind)
#006ED9
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4170db;
/* rgb */ color: rgb(65, 112, 219);
/* oklch */ color: oklch(57.0% 0.172 263.9);
Tailwind
colors: {
  custom: {
    50: '#8898e7',
    500: '#4170db',
    950: '#000000',
  },
}
SCSS
$custom: #4170db;
$custom-light: #8898e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4170db",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 219
  },
  "hsl": {
    "h": 221.688,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5696,
    "c": 0.17182,
    "h": 263.9
  },
  "luminance": 0.17827
}

Semantic roles & 50–950 ramp

primary
#4170DB
secondary
#DCC89C
accent
#B63DEB
background
#F9F9FE
surface
#F1F2FC
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4170DB

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

Preview Lab → · Contrast checker → · Palette generator →

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