#4150E5#4150E5

#4150E5 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.8% C 0.223 H 271.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#4150E5
RGBrgb(65, 80, 229)
HSLhsl(235, 76%, 58%)
HSVhsv(235, 72%, 90%)
CMYKcmyk(71.6%, 65.1%, 0%, 10.2%)
CIE-LABlab(42.03, 43.20, -76.99)
CIE-LCHlch(42.03, 88.28, 299.30°)
OKLaboklab(51.77% 0.0058 -0.2226)
OKLCHoklch(51.77% 0.223 271.5)
XYZxyz(19.1867, 12.5163, 75.5183)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4150E5 #E5D641
analogous
#41A2E5 #4150E5 #8441E5
triadic
#4150E5 #E54150 #50E541
tetradic
#4150E5 #E541A2 #E5D641 #41E584
square
#4150E5 #E541A2 #E5D641 #41E584
split-complementary
#4150E5 #E58441 #A2E541
monochromatic
#152197 #1C2CCD #4150E5 #7782EC #ADB3F4

Accessibility & contrast

On white

5.99
#4150E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#4150E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4150E5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4150E5#FFFFFF#000000##FFFFFF
##4150E51.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEA
Deuteranopia (green-blind)
#005CE2
Tritanopia (blue-blind)
#007893
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4150e5;
/* rgb */ color: rgb(65, 80, 229);
/* oklch */ color: oklch(51.8% 0.223 271.5);
Tailwind
colors: {
  custom: {
    50: '#8c81ee',
    500: '#4150e5',
    950: '#000000',
  },
}
SCSS
$custom: #4150e5;
$custom-light: #8c81ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4150e5",
  "rgb": {
    "r": 65,
    "g": 80,
    "b": 229
  },
  "hsl": {
    "h": 234.512,
    "s": 75.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51768,
    "c": 0.22264,
    "h": 271.5
  },
  "luminance": 0.12518
}

Semantic roles & 50–950 ramp

primary
#4150E5
secondary
#E2DCA0
accent
#E135F3
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4150E5

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

Preview Lab → · Contrast checker → · Palette generator →

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