#4172BC#4172BC

#4172BC is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.4% C 0.127 H 258.4°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4172BC
RGBrgb(65, 114, 188)
HSLhsl(216, 49%, 50%)
HSVhsv(216, 65%, 74%)
CMYKcmyk(65.4%, 39.4%, 0%, 26.3%)
CIE-LABlab(47.99, 7.38, -43.86)
CIE-LCHlch(47.99, 44.48, 279.55°)
OKLaboklab(55.37% -0.0255 -0.1248)
OKLCHoklch(55.37% 0.127 258.4)
XYZxyz(17.2711, 16.7876, 49.8973)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4172BC #BC8B41
analogous
#41B0BC #4172BC #4E41BC
triadic
#4172BC #BC4172 #72BC41
tetradic
#4172BC #BC41B0 #BC8B41 #41BC4E
square
#4172BC #BC41B0 #BC8B41 #41BC4E
split-complementary
#4172BC #BC4E41 #B0BC41
monochromatic
#223B61 #31568F #4172BC #6E93CD #9BB5DC

Accessibility & contrast

On white

4.82
#4172BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#4172BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4172BC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4172BC#FFFFFF#000000##FFFFFF
##4172BC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5178BF
Deuteranopia (green-blind)
#3F6DBA
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4172bc;
/* rgb */ color: rgb(65, 114, 188);
/* oklch */ color: oklch(55.4% 0.127 258.4);
Tailwind
colors: {
  custom: {
    50: '#829ad0',
    500: '#4172bc',
    950: '#000000',
  },
}
SCSS
$custom: #4172bc;
$custom-light: #829ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#4172bc",
  "rgb": {
    "r": 65,
    "g": 114,
    "b": 188
  },
  "hsl": {
    "h": 216.098,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5537,
    "c": 0.1274,
    "h": 258.4
  },
  "luminance": 0.16789
}

Semantic roles & 50–950 ramp

primary
#4172BC
secondary
#C9B290
accent
#A250D8
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #4172BC

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

Preview Lab → · Contrast checker → · Palette generator →

#4172BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva