#4170B2#4170B2

#4170B2 is a mid, moderate blue. Relative luminance 0.159; OKLCH L 54.3% C 0.116 H 257.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#4170B2
RGBrgb(65, 112, 178)
HSLhsl(215, 47%, 48%)
HSVhsv(215, 63%, 70%)
CMYKcmyk(63.5%, 37.1%, 0%, 30.2%)
CIE-LABlab(46.88, 5.10, -39.84)
CIE-LCHlch(46.88, 40.16, 277.30°)
OKLaboklab(54.33% -0.0258 -0.113)
OKLCHoklch(54.33% 0.116 257.1)
XYZxyz(16.0072, 15.9250, 44.3411)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170B2 #B28341
analogous
#41A9B2 #4170B2 #4A41B2
triadic
#4170B2 #B24170 #70B241
tetradic
#4170B2 #B241A9 #B28341 #41B24A
square
#4170B2 #B241A9 #B28341 #41B24A
split-complementary
#4170B2 #B24A41 #A9B241
monochromatic
#203858 #315485 #4170B2 #6890C8 #95B1D8

Accessibility & contrast

On white

5.02
#4170B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#4170B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4170B2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170B2#FFFFFF#000000##FFFFFF
##4170B21.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#446AB1
Tritanopia (blue-blind)
#007F88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4170b2;
/* rgb */ color: rgb(65, 112, 178);
/* oklch */ color: oklch(54.3% 0.116 257.1);
Tailwind
colors: {
  custom: {
    50: '#8098c9',
    500: '#4170b2',
    950: '#000000',
  },
}
SCSS
$custom: #4170b2;
$custom-light: #8098c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4170b2",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 178
  },
  "hsl": {
    "h": 215.044,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54327,
    "c": 0.11596,
    "h": 257.1
  },
  "luminance": 0.15927
}

Semantic roles & 50–950 ramp

primary
#4170B2
secondary
#C4AC8B
accent
#9F52D6
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #4170B2

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

Preview Lab → · Contrast checker → · Palette generator →

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