#4158EA#4158EA

#4158EA is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.6% C 0.220 H 270.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#4158EA
RGBrgb(65, 88, 234)
HSLhsl(232, 80%, 59%)
HSVhsv(232, 72%, 92%)
CMYKcmyk(72.2%, 62.4%, 0%, 8.2%)
CIE-LABlab(44.29, 40.05, -76.11)
CIE-LCHlch(44.29, 86.00, 297.75°)
OKLaboklab(53.56% 0.0005 -0.2199)
OKLCHoklch(53.56% 0.22 270.1)
XYZxyz(20.5159, 14.0416, 79.4550)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158EA #EAD341
analogous
#41ADEA #4158EA #7E41EA
triadic
#4158EA #EA4158 #58EA41
tetradic
#4158EA #EA41AD #EAD341 #41EA7E
square
#4158EA #EA41AD #EAD341 #41EA7E
split-complementary
#4158EA #EA7E41 #ADEA41
monochromatic
#12259F #1832D6 #4158EA #7888F0 #AFB9F6

Accessibility & contrast

On white

5.51
#4158EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#4158EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158EA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158EA#FFFFFF#000000##FFFFFF
##4158EA1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0061E7
Tritanopia (blue-blind)
#007E99
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4158ea;
/* rgb */ color: rgb(65, 88, 234);
/* oklch */ color: oklch(53.6% 0.220 270.1);
Tailwind
colors: {
  custom: {
    50: '#8c87f2',
    500: '#4158ea',
    950: '#000000',
  },
}
SCSS
$custom: #4158ea;
$custom-light: #8c87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4158ea",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 234
  },
  "hsl": {
    "h": 231.834,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.53559,
    "c": 0.21992,
    "h": 270.1
  },
  "luminance": 0.14044
}

Semantic roles & 50–950 ramp

primary
#4158EA
secondary
#E5DCA2
accent
#DC31F7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #4158EA

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

Preview Lab → · Contrast checker → · Palette generator →

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