#4172C2#4172C2

#4172C2 is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.7% C 0.136 H 259.7°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4172C2
RGBrgb(65, 114, 194)
HSLhsl(217, 51%, 51%)
HSVhsv(217, 66%, 76%)
CMYKcmyk(66.5%, 41.2%, 0%, 23.9%)
CIE-LABlab(48.33, 9.50, -46.79)
CIE-LCHlch(48.33, 47.75, 281.48°)
OKLaboklab(55.74% -0.0242 -0.1334)
OKLCHoklch(55.74% 0.136 259.7)
XYZxyz(17.9314, 17.0517, 53.3748)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4172C2 #C29141
analogous
#41B2C2 #4172C2 #5041C2
triadic
#4172C2 #C24172 #72C241
tetradic
#4172C2 #C241B2 #C29141 #41C250
square
#4172C2 #C241B2 #C29141 #41C250
split-complementary
#4172C2 #C25041 #B2C241
monochromatic
#213C67 #305796 #4172C2 #6F94D1 #9EB7E0

Accessibility & contrast

On white

4.76
#4172C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#4172C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4172C2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4172C2#FFFFFF#000000##FFFFFF
##4172C21.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D79C5
Deuteranopia (green-blind)
#396DC0
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4172c2;
/* rgb */ color: rgb(65, 114, 194);
/* oklch */ color: oklch(55.7% 0.136 259.7);
Tailwind
colors: {
  custom: {
    50: '#839ad5',
    500: '#4172c2',
    950: '#000000',
  },
}
SCSS
$custom: #4172c2;
$custom-light: #839ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#4172c2",
  "rgb": {
    "r": 65,
    "g": 114,
    "b": 194
  },
  "hsl": {
    "h": 217.209,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55737,
    "c": 0.13558,
    "h": 259.7
  },
  "luminance": 0.17053
}

Semantic roles & 50–950 ramp

primary
#4172C2
secondary
#CCB693
accent
#A54DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4172C2

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

Preview Lab → · Contrast checker → · Palette generator →

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