#4158DE#4158DE

#4158DE is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.5% C 0.205 H 270.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#4158DE
RGBrgb(65, 88, 222)
HSLhsl(231, 70%, 56%)
HSVhsv(231, 71%, 87%)
CMYKcmyk(70.7%, 60.4%, 0%, 12.9%)
CIE-LABlab(43.32, 35.88, -70.89)
CIE-LCHlch(43.32, 79.45, 296.84°)
OKLaboklab(52.54% 0.0008 -0.2046)
OKLCHoklch(52.54% 0.205 270.2)
XYZxyz(18.8500, 13.3753, 70.6813)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158DE #DEC741
analogous
#41A7DE #4158DE #7941DE
triadic
#4158DE #DE4158 #58DE41
tetradic
#4158DE #DE41A7 #DEC741 #41DE79
square
#4158DE #DE41A7 #DEC741 #41DE79
split-complementary
#4158DE #DE7941 #A7DE41
monochromatic
#18298C #2139C0 #4158DE #7586E7 #A9B4F0

Accessibility & contrast

On white

5.71
#4158DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#4158DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158DE
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158DE#FFFFFF#000000##FFFFFF
##4158DE1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE2
Deuteranopia (green-blind)
#005FDB
Tritanopia (blue-blind)
#007A93
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4158de;
/* rgb */ color: rgb(65, 88, 222);
/* oklch */ color: oklch(52.5% 0.205 270.2);
Tailwind
colors: {
  custom: {
    50: '#8a87e9',
    500: '#4158de',
    950: '#000000',
  },
}
SCSS
$custom: #4158de;
$custom-light: #8a87e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4158de",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 222
  },
  "hsl": {
    "h": 231.21,
    "s": 70.404,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52543,
    "c": 0.20462,
    "h": 270.2
  },
  "luminance": 0.13377
}

Semantic roles & 50–950 ramp

primary
#4158DE
secondary
#DED49D
accent
#D33BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4158DE

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

Preview Lab → · Contrast checker → · Palette generator →

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