#4178EE#4178EE

#4178EE is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.9% C 0.188 H 263.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4178EE
RGBrgb(65, 120, 238)
HSLhsl(221, 84%, 59%)
HSVhsv(221, 73%, 93%)
CMYKcmyk(72.7%, 49.6%, 0%, 6.7%)
CIE-LABlab(52.65, 21.54, -64.77)
CIE-LCHlch(52.65, 68.26, 288.40°)
OKLaboklab(59.92% -0.0224 -0.1862)
OKLCHoklch(59.92% 0.188 263.1)
XYZxyz(24.3236, 20.7272, 83.5912)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4178EE #EEB741
analogous
#41CEEE #4178EE #6141EE
triadic
#4178EE #EE4178 #78EE41
tetradic
#4178EE #EE41CE #EEB741 #41EE61
square
#4178EE #EE41CE #EEB741 #41EE61
split-complementary
#4178EE #EE6141 #CEEE41
monochromatic
#0F3FA6 #1454DE #4178EE #79A0F3 #B1C8F8

Accessibility & contrast

On white

4.08
#4178EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#4178EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4178EE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4178EE#FFFFFF#000000##000000
##4178EE1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3186F2
Deuteranopia (green-blind)
#0076EC
Tritanopia (blue-blind)
#0094A8
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4178ee;
/* rgb */ color: rgb(65, 120, 238);
/* oklch */ color: oklch(59.9% 0.188 263.1);
Tailwind
colors: {
  custom: {
    50: '#8b9ef4',
    500: '#4178ee',
    950: '#000000',
  },
}
SCSS
$custom: #4178ee;
$custom-light: #8b9ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#4178ee",
  "rgb": {
    "r": 65,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 220.925,
    "s": 83.575,
    "l": 59.412
  },
  "oklch": {
    "l": 0.59921,
    "c": 0.18752,
    "h": 263.1
  },
  "luminance": 0.2073
}

Semantic roles & 50–950 ramp

primary
#4178EE
secondary
#E7D2A4
accent
#B92EFA
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4178EE

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

Preview Lab → · Contrast checker → · Palette generator →

#4178EE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva