#4158D7#4158D7

#4158D7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.0% C 0.196 H 270.3°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#4158D7
RGBrgb(65, 88, 215)
HSLhsl(231, 65%, 55%)
HSVhsv(231, 70%, 84%)
CMYKcmyk(69.8%, 59.1%, 0%, 15.7%)
CIE-LABlab(42.77, 33.43, -67.79)
CIE-LCHlch(42.77, 75.58, 296.25°)
OKLaboklab(51.97% 0.0009 -0.1955)
OKLCHoklch(51.97% 0.196 270.3)
XYZxyz(17.9313, 13.0078, 65.8426)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158D7 #D7C041
analogous
#41A3D7 #4158D7 #7541D7
triadic
#4158D7 #D74158 #58D741
tetradic
#4158D7 #D741A3 #D7C041 #41D775
square
#4158D7 #D741A3 #D7C041 #41D775
split-complementary
#4158D7 #D77541 #A3D741
monochromatic
#1B2B82 #263CB5 #4158D7 #7484E2 #A6B1EC

Accessibility & contrast

On white

5.83
#4158D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#4158D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158D7
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158D7#FFFFFF#000000##FFFFFF
##4158D71.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00788F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4158d7;
/* rgb */ color: rgb(65, 88, 215);
/* oklch */ color: oklch(52.0% 0.196 270.3);
Tailwind
colors: {
  custom: {
    50: '#8887e4',
    500: '#4158d7',
    950: '#000000',
  },
}
SCSS
$custom: #4158d7;
$custom-light: #8887e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4158d7",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 215
  },
  "hsl": {
    "h": 230.8,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51966,
    "c": 0.19552,
    "h": 270.3
  },
  "luminance": 0.1301
}

Semantic roles & 50–950 ramp

primary
#4158D7
secondary
#D9D09A
accent
#CE40E8
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4158D7

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

Preview Lab → · Contrast checker → · Palette generator →

#4158D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva