#4171CB#4171CB

#4171CB is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.1% C 0.149 H 261.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#4171CB
RGBrgb(65, 113, 203)
HSLhsl(219, 57%, 53%)
HSVhsv(219, 68%, 80%)
CMYKcmyk(68%, 44.3%, 0%, 20.4%)
CIE-LABlab(48.57, 13.34, -51.57)
CIE-LCHlch(48.57, 53.26, 284.50°)
OKLaboklab(56.09% -0.0215 -0.1474)
OKLCHoklch(56.09% 0.149 261.7)
XYZxyz(18.8608, 17.2440, 58.8228)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4171CB #CB9B41
analogous
#41B6CB #4171CB #5641CB
triadic
#4171CB #CB4171 #71CB41
tetradic
#4171CB #CB41B6 #CB9B41 #41CB56
square
#4171CB #CB41B6 #CB9B41 #41CB56
split-complementary
#4171CB #CB5641 #B6CB41
monochromatic
#1F3C72 #2C55A2 #4171CB #7195D8 #A1B9E5

Accessibility & contrast

On white

4.72
#4171CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#4171CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4171CB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4171CB#FFFFFF#000000##FFFFFF
##4171CB1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#457ACE
Deuteranopia (green-blind)
#2C6DC9
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4171cb;
/* rgb */ color: rgb(65, 113, 203);
/* oklch */ color: oklch(56.1% 0.149 261.7);
Tailwind
colors: {
  custom: {
    50: '#8599db',
    500: '#4171cb',
    950: '#000000',
  },
}
SCSS
$custom: #4171cb;
$custom-light: #8599db;
$custom-dark: #000000;
JSON
{
  "hex": "#4171cb",
  "rgb": {
    "r": 65,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 219.13,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56092,
    "c": 0.149,
    "h": 261.7
  },
  "luminance": 0.17246
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4171CB

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

Preview Lab → · Contrast checker → · Palette generator →

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