#4170CB#4170CB

#4170CB is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.9% C 0.150 H 262.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4170CB
RGBrgb(65, 112, 203)
HSLhsl(220, 57%, 53%)
HSVhsv(220, 68%, 80%)
CMYKcmyk(68%, 44.8%, 0%, 20.4%)
CIE-LABlab(48.29, 13.96, -52.01)
CIE-LCHlch(48.29, 53.85, 285.03°)
OKLaboklab(55.88% -0.0206 -0.1488)
OKLCHoklch(55.88% 0.15 262.1)
XYZxyz(18.7498, 17.0221, 58.7858)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170CB #CB9C41
analogous
#41B5CB #4170CB #5741CB
triadic
#4170CB #CB4170 #70CB41
tetradic
#4170CB #CB41B5 #CB9C41 #41CB57
square
#4170CB #CB41B5 #CB9C41 #41CB57
split-complementary
#4170CB #CB5741 #B5CB41
monochromatic
#1F3C72 #2C55A2 #4170CB #7194D8 #A1B8E5

Accessibility & contrast

On white

4.77
#4170CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4170CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170CB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170CB#FFFFFF#000000##FFFFFF
##4170CB1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4379CE
Deuteranopia (green-blind)
#2A6DC9
Tritanopia (blue-blind)
#008593
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4170cb;
/* rgb */ color: rgb(65, 112, 203);
/* oklch */ color: oklch(55.9% 0.150 262.1);
Tailwind
colors: {
  custom: {
    50: '#8598db',
    500: '#4170cb',
    950: '#000000',
  },
}
SCSS
$custom: #4170cb;
$custom-light: #8598db;
$custom-dark: #000000;
JSON
{
  "hex": "#4170cb",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 219.565,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55878,
    "c": 0.15018,
    "h": 262.1
  },
  "luminance": 0.17024
}

Semantic roles & 50–950 ramp

primary
#4170CB
secondary
#D2BD96
accent
#AC48E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4170CB

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

Preview Lab → · Contrast checker → · Palette generator →

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