#4158CE#4158CE

#4158CE is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.2% C 0.184 H 270.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4158CE
RGBrgb(65, 88, 206)
HSLhsl(230, 59%, 53%)
HSVhsv(230, 68%, 81%)
CMYKcmyk(68.4%, 57.3%, 0%, 19.2%)
CIE-LABlab(42.09, 30.25, -63.74)
CIE-LCHlch(42.09, 70.56, 295.39°)
OKLaboklab(51.24% 0.0008 -0.1836)
OKLCHoklch(51.24% 0.184 270.2)
XYZxyz(16.8065, 12.5579, 59.9188)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158CE #CEB741
analogous
#419ECE #4158CE #7041CE
triadic
#4158CE #CE4158 #58CE41
tetradic
#4158CE #CE419E #CEB741 #41CE70
square
#4158CE #CE419E #CEB741 #41CE70
split-complementary
#4158CE #CE7041 #9ECE41
monochromatic
#1E2D76 #2B3FA7 #4158CE #7283DB #A2AEE7

Accessibility & contrast

On white

5.98
#4158CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4158CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158CE
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158CE#FFFFFF#000000##FFFFFF
##4158CE1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4158ce;
/* rgb */ color: rgb(65, 88, 206);
/* oklch */ color: oklch(51.2% 0.184 270.2);
Tailwind
colors: {
  custom: {
    50: '#8686de',
    500: '#4158ce',
    950: '#000000',
  },
}
SCSS
$custom: #4158ce;
$custom-light: #8686de;
$custom-dark: #000000;
JSON
{
  "hex": "#4158ce",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 206
  },
  "hsl": {
    "h": 230.213,
    "s": 58.996,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5124,
    "c": 0.18362,
    "h": 270.2
  },
  "luminance": 0.12559
}

Semantic roles & 50–950 ramp

primary
#4158CE
secondary
#D4CA97
accent
#C946E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4158CE

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

Preview Lab → · Contrast checker → · Palette generator →

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