#4170EA#4170EA

#4170EA is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.0% C 0.192 H 265.0°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#4170EA
RGBrgb(65, 112, 234)
HSLhsl(223, 80%, 59%)
HSVhsv(223, 72%, 92%)
CMYKcmyk(72.2%, 52.1%, 0%, 8.2%)
CIE-LABlab(50.28, 25.09, -66.37)
CIE-LCHlch(50.28, 70.96, 290.71°)
OKLaboklab(58.03% -0.0166 -0.191)
OKLCHoklch(58.03% 0.192 265)
XYZxyz(22.8202, 18.6502, 80.2231)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4170EA #EABB41
analogous
#41C4EA #4170EA #6641EA
triadic
#4170EA #EA4170 #70EA41
tetradic
#4170EA #EA41C4 #EABB41 #41EA66
square
#4170EA #EA41C4 #EABB41 #41EA66
split-complementary
#4170EA #EA6641 #C4EA41
monochromatic
#12399F #184DD6 #4170EA #7899F0 #AFC3F6

Accessibility & contrast

On white

4.44
#4170EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#4170EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4170EA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4170EA#FFFFFF#000000##000000
##4170EA1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A80EE
Deuteranopia (green-blind)
#0070E8
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4170ea;
/* rgb */ color: rgb(65, 112, 234);
/* oklch */ color: oklch(58.0% 0.192 265.0);
Tailwind
colors: {
  custom: {
    50: '#8b98f1',
    500: '#4170ea',
    950: '#000000',
  },
}
SCSS
$custom: #4170ea;
$custom-light: #8b98f1;
$custom-dark: #000000;
JSON
{
  "hex": "#4170ea",
  "rgb": {
    "r": 65,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 223.314,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58031,
    "c": 0.19173,
    "h": 265
  },
  "luminance": 0.18653
}

Semantic roles & 50–950 ramp

primary
#4170EA
secondary
#E5D2A2
accent
#C031F7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #4170EA

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

Preview Lab → · Contrast checker → · Palette generator →

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