#4162D5#4162D5

#4162D5 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.7% C 0.181 H 267.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#4162D5
RGBrgb(65, 98, 213)
HSLhsl(227, 64%, 55%)
HSVhsv(227, 69%, 84%)
CMYKcmyk(69.5%, 54%, 0%, 16.5%)
CIE-LABlab(45.17, 26.40, -62.76)
CIE-LCHlch(45.17, 68.09, 292.81°)
OKLaboklab(53.71% -0.007 -0.1806)
OKLCHoklch(53.71% 0.181 267.8)
XYZxyz(18.5537, 14.6614, 64.7900)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4162D5 #D5B441
analogous
#41ACD5 #4162D5 #6A41D5
triadic
#4162D5 #D54162 #62D541
tetradic
#4162D5 #D541AC #D5B441 #41D56A
square
#4162D5 #D541AC #D5B441 #41D56A
split-complementary
#4162D5 #D56A41 #ACD541
monochromatic
#1C327F #2746B2 #4162D5 #738BE0 #A5B5EB

Accessibility & contrast

On white

5.34
#4162D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#4162D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4162D5
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4162D5#FFFFFF#000000##FFFFFF
##4162D51.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0172D9
Deuteranopia (green-blind)
#0064D3
Tritanopia (blue-blind)
#007E92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4162d5;
/* rgb */ color: rgb(65, 98, 213);
/* oklch */ color: oklch(53.7% 0.181 267.8);
Tailwind
colors: {
  custom: {
    50: '#878ee3',
    500: '#4162d5',
    950: '#000000',
  },
}
SCSS
$custom: #4162d5;
$custom-light: #878ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#4162d5",
  "rgb": {
    "r": 65,
    "g": 98,
    "b": 213
  },
  "hsl": {
    "h": 226.622,
    "s": 63.793,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53709,
    "c": 0.18074,
    "h": 267.8
  },
  "luminance": 0.14663
}

Semantic roles & 50–950 ramp

primary
#4162D5
secondary
#D8CA9A
accent
#C241E7
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #4162D5

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

Preview Lab → · Contrast checker → · Palette generator →

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