#4172C4#4172C4

#4172C4 is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.138 H 260.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#4172C4
RGBrgb(65, 114, 196)
HSLhsl(218, 53%, 51%)
HSVhsv(218, 67%, 77%)
CMYKcmyk(66.8%, 41.8%, 0%, 23.1%)
CIE-LABlab(48.44, 10.21, -47.76)
CIE-LCHlch(48.44, 48.84, 282.07°)
OKLaboklab(55.86% -0.0238 -0.1362)
OKLCHoklch(55.86% 0.138 260.1)
XYZxyz(18.1575, 17.1422, 54.5657)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4172C4 #C49341
analogous
#41B3C4 #4172C4 #5141C4
triadic
#4172C4 #C44172 #72C441
tetradic
#4172C4 #C441B3 #C49341 #41C451
square
#4172C4 #C441B3 #C49341 #41C451
split-complementary
#4172C4 #C45141 #B3C441
monochromatic
#213C6A #2F5798 #4172C4 #7095D3 #9EB7E1

Accessibility & contrast

On white

4.74
#4172C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#4172C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4172C4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4172C4#FFFFFF#000000##FFFFFF
##4172C41.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C7AC7
Deuteranopia (green-blind)
#376DC2
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4172c4;
/* rgb */ color: rgb(65, 114, 196);
/* oklch */ color: oklch(55.9% 0.138 260.1);
Tailwind
colors: {
  custom: {
    50: '#839ad6',
    500: '#4172c4',
    950: '#000000',
  },
}
SCSS
$custom: #4172c4;
$custom-light: #839ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#4172c4",
  "rgb": {
    "r": 65,
    "g": 114,
    "b": 196
  },
  "hsl": {
    "h": 217.557,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55862,
    "c": 0.1383,
    "h": 260.1
  },
  "luminance": 0.17144
}

Semantic roles & 50–950 ramp

primary
#4172C4
secondary
#CDB893
accent
#A64CDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4172C4

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

Preview Lab → · Contrast checker → · Palette generator →

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