#4162E2#4162E2

#4162E2 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.7% C 0.198 H 268.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#4162E2
RGBrgb(65, 98, 226)
HSLhsl(228, 74%, 57%)
HSVhsv(228, 71%, 89%)
CMYKcmyk(71.2%, 56.6%, 0%, 11.4%)
CIE-LABlab(46.11, 31.03, -68.63)
CIE-LCHlch(46.11, 75.31, 294.33°)
OKLaboklab(54.71% -0.0064 -0.1978)
OKLCHoklch(54.71% 0.198 268.2)
XYZxyz(20.2704, 15.3481, 73.8310)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4162E2 #E2C141
analogous
#41B2E2 #4162E2 #7141E2
triadic
#4162E2 #E24162 #62E241
tetradic
#4162E2 #E241B2 #E2C141 #41E271
square
#4162E2 #E241B2 #E2C141 #41E271
split-complementary
#4162E2 #E27141 #B2E241
monochromatic
#163092 #1E41C7 #4162E2 #768EEA #ABBAF2

Accessibility & contrast

On white

5.16
#4162E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#4162E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4162E2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4162E2#FFFFFF#000000##FFFFFF
##4162E21.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E6
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#008298
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4162e2;
/* rgb */ color: rgb(65, 98, 226);
/* oklch */ color: oklch(54.7% 0.198 268.2);
Tailwind
colors: {
  custom: {
    50: '#8a8eec',
    500: '#4162e2',
    950: '#000000',
  },
}
SCSS
$custom: #4162e2;
$custom-light: #8a8eec;
$custom-dark: #000000;
JSON
{
  "hex": "#4162e2",
  "rgb": {
    "r": 65,
    "g": 98,
    "b": 226
  },
  "hsl": {
    "h": 227.702,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54712,
    "c": 0.19795,
    "h": 268.2
  },
  "luminance": 0.1535
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4162E2

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

Preview Lab → · Contrast checker → · Palette generator →

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