#4170BA#4170BA

#4170BA is a mid, vivid blue. Relative luminance 0.163; OKLCH L 54.8% C 0.127 H 259.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#4170BA
RGBrgb(65, 112, 186)
HSLhsl(217, 48%, 49%)
HSVhsv(217, 65%, 73%)
CMYKcmyk(65.1%, 39.8%, 0%, 27.1%)
CIE-LABlab(47.31, 7.91, -43.79)
CIE-LCHlch(47.31, 44.50, 280.24°)
OKLaboklab(54.8% -0.0239 -0.1246)
OKLCHoklch(54.8% 0.127 259.1)
XYZxyz(16.8339, 16.2557, 48.6954)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170BA #BA8B41
analogous
#41ADBA #4170BA #4F41BA
triadic
#4170BA #BA4170 #70BA41
tetradic
#4170BA #BA41AD #BA8B41 #41BA4F
square
#4170BA #BA41AD #BA8B41 #41BA4F
split-complementary
#4170BA #BA4F41 #ADBA41
monochromatic
#21395F #31558D #4170BA #6C91CC #9AB3DC

Accessibility & contrast

On white

4.94
#4170BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#4170BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170BA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170BA#FFFFFF#000000##FFFFFF
##4170BA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F76BD
Deuteranopia (green-blind)
#3D6BB8
Tritanopia (blue-blind)
#00818C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4170ba;
/* rgb */ color: rgb(65, 112, 186);
/* oklch */ color: oklch(54.8% 0.127 259.1);
Tailwind
colors: {
  custom: {
    50: '#8298cf',
    500: '#4170ba',
    950: '#000000',
  },
}
SCSS
$custom: #4170ba;
$custom-light: #8298cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4170ba",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 186
  },
  "hsl": {
    "h": 216.694,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54804,
    "c": 0.12691,
    "h": 259.1
  },
  "luminance": 0.16257
}

Semantic roles & 50–950 ramp

primary
#4170BA
secondary
#C8B28F
accent
#A350D8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #4170BA

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

Preview Lab → · Contrast checker → · Palette generator →

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