#4166E5#4166E5

#4166E5 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 55.7% C 0.197 H 267.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#4166E5
RGBrgb(65, 102, 229)
HSLhsl(226, 76%, 58%)
HSVhsv(226, 72%, 90%)
CMYKcmyk(71.6%, 55.5%, 0%, 10.2%)
CIE-LABlab(47.34, 29.58, -68.31)
CIE-LCHlch(47.34, 74.44, 293.41°)
OKLaboklab(55.71% -0.0093 -0.1969)
OKLCHoklch(55.71% 0.197 267.3)
XYZxyz(21.0693, 16.2815, 76.1458)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4166E5 #E5C041
analogous
#41B8E5 #4166E5 #6E41E5
triadic
#4166E5 #E54166 #66E541
tetradic
#4166E5 #E541B8 #E5C041 #41E56E
square
#4166E5 #E541B8 #E5C041 #41E56E
split-complementary
#4166E5 #E56E41 #B8E541
monochromatic
#153297 #1C44CD #4166E5 #7791EC #ADBDF4

Accessibility & contrast

On white

4.93
#4166E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#4166E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4166E5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4166E5#FFFFFF#000000##FFFFFF
##4166E51.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#0069E2
Tritanopia (blue-blind)
#00859C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4166e5;
/* rgb */ color: rgb(65, 102, 229);
/* oklch */ color: oklch(55.7% 0.197 267.3);
Tailwind
colors: {
  custom: {
    50: '#8a91ee',
    500: '#4166e5',
    950: '#000000',
  },
}
SCSS
$custom: #4166e5;
$custom-light: #8a91ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4166e5",
  "rgb": {
    "r": 65,
    "g": 102,
    "b": 229
  },
  "hsl": {
    "h": 226.463,
    "s": 75.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55707,
    "c": 0.1971,
    "h": 267.3
  },
  "luminance": 0.16284
}

Semantic roles & 50–950 ramp

primary
#4166E5
secondary
#E2D3A0
accent
#C835F3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4166E5

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

Preview Lab → · Contrast checker → · Palette generator →

#4166E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva