#4172C8#4172C8

#4172C8 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.1% C 0.144 H 260.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#4172C8
RGBrgb(65, 114, 200)
HSLhsl(218, 55%, 52%)
HSVhsv(218, 68%, 78%)
CMYKcmyk(67.5%, 43%, 0%, 21.6%)
CIE-LABlab(48.67, 11.64, -49.69)
CIE-LCHlch(48.67, 51.03, 283.18°)
OKLaboklab(56.12% -0.023 -0.1419)
OKLCHoklch(56.12% 0.144 260.8)
XYZxyz(18.6189, 17.3267, 56.9955)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4172C8 #C89741
analogous
#41B6C8 #4172C8 #5441C8
triadic
#4172C8 #C84172 #72C841
tetradic
#4172C8 #C841B6 #C89741 #41C854
square
#4172C8 #C841B6 #C89741 #41C854
split-complementary
#4172C8 #C85441 #B6C841
monochromatic
#203D6F #2E579E #4172C8 #7095D6 #A0B8E3

Accessibility & contrast

On white

4.70
#4172C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#4172C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4172C8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4172C8#FFFFFF#000000##FFFFFF
##4172C81.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#497ACB
Deuteranopia (green-blind)
#336EC6
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4172c8;
/* rgb */ color: rgb(65, 114, 200);
/* oklch */ color: oklch(56.1% 0.144 260.8);
Tailwind
colors: {
  custom: {
    50: '#849ad9',
    500: '#4172c8',
    950: '#000000',
  },
}
SCSS
$custom: #4172c8;
$custom-light: #849ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#4172c8",
  "rgb": {
    "r": 65,
    "g": 114,
    "b": 200
  },
  "hsl": {
    "h": 218.222,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.56115,
    "c": 0.14375,
    "h": 260.8
  },
  "luminance": 0.17329
}

Semantic roles & 50–950 ramp

primary
#4172C8
secondary
#D0BA95
accent
#A849DE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4172C8

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

Preview Lab → · Contrast checker → · Palette generator →

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