#4166E2#4166E2

#4166E2 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.5% C 0.193 H 267.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#4166E2
RGBrgb(65, 102, 226)
HSLhsl(226, 74%, 57%)
HSVhsv(226, 71%, 89%)
CMYKcmyk(71.2%, 54.9%, 0%, 11.4%)
CIE-LABlab(47.13, 28.51, -66.97)
CIE-LCHlch(47.13, 72.79, 293.06°)
OKLaboklab(55.48% -0.0094 -0.1929)
OKLCHoklch(55.48% 0.193 267.2)
XYZxyz(20.6540, 16.1154, 73.9588)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4166E2 #E2BD41
analogous
#41B7E2 #4166E2 #6D41E2
triadic
#4166E2 #E24166 #66E241
tetradic
#4166E2 #E241B7 #E2BD41 #41E26D
square
#4166E2 #E241B7 #E2BD41 #41E26D
split-complementary
#4166E2 #E26D41 #B7E241
monochromatic
#163392 #1E45C7 #4166E2 #7691EA #ABBCF2

Accessibility & contrast

On white

4.97
#4166E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#4166E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4166E2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4166E2#FFFFFF#000000##FFFFFF
##4166E21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#0069E0
Tritanopia (blue-blind)
#00849A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4166e2;
/* rgb */ color: rgb(65, 102, 226);
/* oklch */ color: oklch(55.5% 0.193 267.2);
Tailwind
colors: {
  custom: {
    50: '#8991ec',
    500: '#4166e2',
    950: '#000000',
  },
}
SCSS
$custom: #4166e2;
$custom-light: #8991ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4166e2",
  "rgb": {
    "r": 65,
    "g": 102,
    "b": 226
  },
  "hsl": {
    "h": 226.211,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55476,
    "c": 0.19316,
    "h": 267.2
  },
  "luminance": 0.16118
}

Semantic roles & 50–950 ramp

primary
#4166E2
secondary
#E0D19F
accent
#C638F0
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4166E2

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

Preview Lab → · Contrast checker → · Palette generator →

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