#4172E8#4172E8

#4172E8 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.3% C 0.187 H 264.4°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4172E8
RGBrgb(65, 114, 232)
HSLhsl(222, 78%, 58%)
HSVhsv(222, 72%, 91%)
CMYKcmyk(72%, 50.9%, 0%, 9%)
CIE-LABlab(50.67, 23.12, -64.62)
CIE-LCHlch(50.67, 68.63, 289.69°)
OKLaboklab(58.29% -0.0183 -0.1858)
OKLCHoklch(58.29% 0.187 264.4)
XYZxyz(22.7576, 18.9822, 78.7928)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4172E8 #E8B741
analogous
#41C6E8 #4172E8 #6341E8
triadic
#4172E8 #E84172 #72E841
tetradic
#4172E8 #E841C6 #E8B741 #41E863
square
#4172E8 #E841C6 #E8B741 #41E863
split-complementary
#4172E8 #E86341 #C6E841
monochromatic
#133B9C #1950D2 #4172E8 #789BEF #AEC3F5

Accessibility & contrast

On white

4.38
#4172E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#4172E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4172E8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4172E8#FFFFFF#000000##000000
##4172E81.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2781EC
Deuteranopia (green-blind)
#0071E6
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4172e8;
/* rgb */ color: rgb(65, 114, 232);
/* oklch */ color: oklch(58.3% 0.187 264.4);
Tailwind
colors: {
  custom: {
    50: '#8a99f0',
    500: '#4172e8',
    950: '#000000',
  },
}
SCSS
$custom: #4172e8;
$custom-light: #8a99f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4172e8",
  "rgb": {
    "r": 65,
    "g": 114,
    "b": 232
  },
  "hsl": {
    "h": 222.395,
    "s": 78.404,
    "l": 58.235
  },
  "oklch": {
    "l": 0.58285,
    "c": 0.18671,
    "h": 264.4
  },
  "luminance": 0.18985
}

Semantic roles & 50–950 ramp

primary
#4172E8
secondary
#E4D0A1
accent
#BC33F5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #4172E8

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

Preview Lab → · Contrast checker → · Palette generator →

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