#4172E7#4172E7

#4172E7 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.2% C 0.185 H 264.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4172E7
RGBrgb(65, 114, 231)
HSLhsl(222, 78%, 58%)
HSVhsv(222, 72%, 91%)
CMYKcmyk(71.9%, 50.6%, 0%, 9.4%)
CIE-LABlab(50.60, 22.77, -64.16)
CIE-LCHlch(50.60, 68.08, 289.54°)
OKLaboklab(58.21% -0.0184 -0.1845)
OKLCHoklch(58.21% 0.185 264.3)
XYZxyz(22.6160, 18.9255, 78.0469)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4172E7 #E7B641
analogous
#41C5E7 #4172E7 #6341E7
triadic
#4172E7 #E74172 #72E741
tetradic
#4172E7 #E741C5 #E7B641 #41E763
square
#4172E7 #E741C5 #E7B641 #41E763
split-complementary
#4172E7 #E76341 #C5E741
monochromatic
#133B9A #1A50D0 #4172E7 #779AEE #AEC3F5

Accessibility & contrast

On white

4.39
#4172E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#4172E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4172E7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4172E7#FFFFFF#000000##000000
##4172E71.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2880EB
Deuteranopia (green-blind)
#0071E5
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4172e7;
/* rgb */ color: rgb(65, 114, 231);
/* oklch */ color: oklch(58.2% 0.185 264.3);
Tailwind
colors: {
  custom: {
    50: '#8a99ef',
    500: '#4172e7',
    950: '#000000',
  },
}
SCSS
$custom: #4172e7;
$custom-light: #8a99ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4172e7",
  "rgb": {
    "r": 65,
    "g": 114,
    "b": 231
  },
  "hsl": {
    "h": 222.289,
    "s": 77.57,
    "l": 58.039
  },
  "oklch": {
    "l": 0.58214,
    "c": 0.1854,
    "h": 264.3
  },
  "luminance": 0.18928
}

Semantic roles & 50–950 ramp

primary
#4172E7
secondary
#E3CFA1
accent
#BB34F4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #4172E7

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

Preview Lab → · Contrast checker → · Palette generator →

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