#4151E5#4151E5

#4151E5 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 51.9% C 0.222 H 271.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#4151E5
RGBrgb(65, 81, 229)
HSLhsl(234, 76%, 58%)
HSVhsv(234, 72%, 90%)
CMYKcmyk(71.6%, 64.6%, 0%, 10.2%)
CIE-LABlab(42.25, 42.60, -76.62)
CIE-LCHlch(42.25, 87.66, 299.07°)
OKLaboklab(51.93% 0.0052 -0.2215)
OKLCHoklch(51.93% 0.222 271.3)
XYZxyz(19.2605, 12.6639, 75.5429)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151E5 #E5D541
analogous
#41A3E5 #4151E5 #8341E5
triadic
#4151E5 #E54151 #51E541
tetradic
#4151E5 #E541A3 #E5D541 #41E583
square
#4151E5 #E541A3 #E5D541 #41E583
split-complementary
#4151E5 #E58341 #A3E541
monochromatic
#152197 #1C2DCD #4151E5 #7782EC #ADB4F4

Accessibility & contrast

On white

5.94
#4151E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4151E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151E5
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151E5#FFFFFF#000000##FFFFFF
##4151E51.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#005CE2
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4151e5;
/* rgb */ color: rgb(65, 81, 229);
/* oklch */ color: oklch(51.9% 0.222 271.3);
Tailwind
colors: {
  custom: {
    50: '#8c82ee',
    500: '#4151e5',
    950: '#000000',
  },
}
SCSS
$custom: #4151e5;
$custom-light: #8c82ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4151e5",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 234.146,
    "s": 75.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51934,
    "c": 0.22153,
    "h": 271.3
  },
  "luminance": 0.12666
}

Semantic roles & 50–950 ramp

primary
#4151E5
secondary
#E2DBA0
accent
#E035F3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4151E5

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

Preview Lab → · Contrast checker → · Palette generator →

#4151E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva