#4178EA#4178EA

#4178EA is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.6% C 0.182 H 262.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#4178EA
RGBrgb(65, 120, 234)
HSLhsl(220, 80%, 59%)
HSVhsv(220, 72%, 92%)
CMYKcmyk(72.2%, 48.7%, 0%, 8.2%)
CIE-LABlab(52.39, 20.10, -62.95)
CIE-LCHlch(52.39, 66.08, 287.71°)
OKLaboklab(59.64% -0.0229 -0.1808)
OKLCHoklch(59.64% 0.182 262.8)
XYZxyz(23.7424, 20.4947, 80.5305)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4178EA #EAB341
analogous
#41CDEA #4178EA #5E41EA
triadic
#4178EA #EA4178 #78EA41
tetradic
#4178EA #EA41CD #EAB341 #41EA5E
square
#4178EA #EA41CD #EAB341 #41EA5E
split-complementary
#4178EA #EA5E41 #CDEA41
monochromatic
#12409F #1856D6 #4178EA #789FF0 #AFC6F6

Accessibility & contrast

On white

4.12
#4178EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#4178EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4178EA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4178EA#FFFFFF#000000##000000
##4178EA1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3685EE
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#0093A6
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4178ea;
/* rgb */ color: rgb(65, 120, 234);
/* oklch */ color: oklch(59.6% 0.182 262.8);
Tailwind
colors: {
  custom: {
    50: '#8a9ef1',
    500: '#4178ea',
    950: '#000000',
  },
}
SCSS
$custom: #4178ea;
$custom-light: #8a9ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#4178ea",
  "rgb": {
    "r": 65,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 220.473,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59642,
    "c": 0.18226,
    "h": 262.8
  },
  "luminance": 0.20497
}

Semantic roles & 50–950 ramp

primary
#4178EA
secondary
#E5CFA2
accent
#B631F7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0E17
muted
#7E7E85

Preview Lab

Preview with #4178EA

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

Preview Lab → · Contrast checker → · Palette generator →

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