#4161E2#4161E2

#4161E2 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.5% C 0.199 H 268.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4161E2
RGBrgb(65, 97, 226)
HSLhsl(228, 74%, 57%)
HSVhsv(228, 71%, 89%)
CMYKcmyk(71.2%, 57.1%, 0%, 11.4%)
CIE-LABlab(45.86, 31.65, -69.04)
CIE-LCHlch(45.86, 75.95, 294.63°)
OKLaboklab(54.52% -0.0056 -0.1991)
OKLCHoklch(54.52% 0.199 268.4)
XYZxyz(20.1774, 15.1621, 73.8000)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4161E2 #E2C241
analogous
#41B1E2 #4161E2 #7241E2
triadic
#4161E2 #E24161 #61E241
tetradic
#4161E2 #E241B1 #E2C241 #41E272
square
#4161E2 #E241B1 #E2C241 #41E272
split-complementary
#4161E2 #E27241 #B1E241
monochromatic
#162F92 #1E40C7 #4161E2 #768DEA #ABB9F2

Accessibility & contrast

On white

5.21
#4161E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#4161E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4161E2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4161E2#FFFFFF#000000##FFFFFF
##4161E21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E6
Deuteranopia (green-blind)
#0065DF
Tritanopia (blue-blind)
#008198
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4161e2;
/* rgb */ color: rgb(65, 97, 226);
/* oklch */ color: oklch(54.5% 0.199 268.4);
Tailwind
colors: {
  custom: {
    50: '#8a8dec',
    500: '#4161e2',
    950: '#000000',
  },
}
SCSS
$custom: #4161e2;
$custom-light: #8a8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#4161e2",
  "rgb": {
    "r": 65,
    "g": 97,
    "b": 226
  },
  "hsl": {
    "h": 228.075,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54524,
    "c": 0.19915,
    "h": 268.4
  },
  "luminance": 0.15164
}

Semantic roles & 50–950 ramp

primary
#4161E2
secondary
#E0D39F
accent
#CB38F0
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4161E2

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

Preview Lab → · Contrast checker → · Palette generator →

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