#4158CC#4158CC

#4158CC is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.1% C 0.181 H 270.2°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#4158CC
RGBrgb(65, 88, 204)
HSLhsl(230, 58%, 53%)
HSVhsv(230, 68%, 80%)
CMYKcmyk(68.1%, 56.9%, 0%, 20%)
CIE-LABlab(41.94, 29.55, -62.83)
CIE-LCHlch(41.94, 69.43, 295.19°)
OKLaboklab(51.08% 0.0007 -0.1809)
OKLCHoklch(51.08% 0.181 270.2)
XYZxyz(16.5651, 12.4613, 58.6473)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158CC #CCB541
analogous
#419DCC #4158CC #6F41CC
triadic
#4158CC #CC4158 #58CC41
tetradic
#4158CC #CC419D #CCB541 #41CC6F
square
#4158CC #CC419D #CCB541 #41CC6F
split-complementary
#4158CC #CC6F41 #9DCC41
monochromatic
#1F2D74 #2C40A4 #4158CC #7182D9 #A1ADE6

Accessibility & contrast

On white

6.01
#4158CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4158CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158CC
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158CC#FFFFFF#000000##FFFFFF
##4158CC1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4158cc;
/* rgb */ color: rgb(65, 88, 204);
/* oklch */ color: oklch(51.1% 0.181 270.2);
Tailwind
colors: {
  custom: {
    50: '#8686dc',
    500: '#4158cc',
    950: '#000000',
  },
}
SCSS
$custom: #4158cc;
$custom-light: #8686dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4158cc",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 230.072,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51082,
    "c": 0.18094,
    "h": 270.2
  },
  "luminance": 0.12463
}

Semantic roles & 50–950 ramp

primary
#4158CC
secondary
#D3C996
accent
#C747E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4158CC

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

Preview Lab → · Contrast checker → · Palette generator →

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