#4166E1#4166E1

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

Color values

HEX#4166E1
RGBrgb(65, 102, 225)
HSLhsl(226, 73%, 57%)
HSVhsv(226, 71%, 88%)
CMYKcmyk(71.1%, 54.7%, 0%, 11.8%)
CIE-LABlab(47.05, 28.15, -66.52)
CIE-LCHlch(47.05, 72.23, 292.94°)
OKLaboklab(55.4% -0.0095 -0.1916)
OKLCHoklch(55.4% 0.192 267.2)
XYZxyz(20.5172, 16.0607, 73.2383)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4166E1 #E1BC41
analogous
#41B6E1 #4166E1 #6C41E1
triadic
#4166E1 #E14166 #66E141
tetradic
#4166E1 #E141B6 #E1BC41 #41E16C
square
#4166E1 #E141B6 #E1BC41 #41E16C
split-complementary
#4166E1 #E16C41 #B6E141
monochromatic
#173391 #1F46C6 #4166E1 #7691E9 #ABBBF2

Accessibility & contrast

On white

4.99
#4166E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#4166E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4166E1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4166E1#FFFFFF#000000##FFFFFF
##4166E11.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4166e1;
/* rgb */ color: rgb(65, 102, 225);
/* oklch */ color: oklch(55.4% 0.192 267.2);
Tailwind
colors: {
  custom: {
    50: '#8991eb',
    500: '#4166e1',
    950: '#000000',
  },
}
SCSS
$custom: #4166e1;
$custom-light: #8991eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4166e1",
  "rgb": {
    "r": 65,
    "g": 102,
    "b": 225
  },
  "hsl": {
    "h": 226.125,
    "s": 72.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.554,
    "c": 0.19184,
    "h": 267.2
  },
  "luminance": 0.16063
}

Semantic roles & 50–950 ramp

primary
#4166E1
secondary
#E0D09E
accent
#C538EF
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4166E1

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

Preview Lab → · Contrast checker → · Palette generator →

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