#4158BF#4158BF

#4158BF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.1% C 0.163 H 270.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#4158BF
RGBrgb(65, 88, 191)
HSLhsl(229, 50%, 50%)
HSVhsv(229, 66%, 75%)
CMYKcmyk(66%, 53.9%, 0%, 25.1%)
CIE-LABlab(41.00, 24.94, -56.82)
CIE-LCHlch(41.00, 62.05, 293.70°)
OKLaboklab(50.08% 0.0001 -0.1633)
OKLCHoklch(50.08% 0.163 270)
XYZxyz(15.0705, 11.8635, 50.7758)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158BF #BFA841
analogous
#4197BF #4158BF #6941BF
triadic
#4158BF #BF4158 #58BF41
tetradic
#4158BF #BF4197 #BFA841 #41BF69
square
#4158BF #BF4197 #BFA841 #41BF69
split-complementary
#4158BF #BF6941 #97BF41
monochromatic
#222E64 #314392 #4158BF #6F80CE #9DA8DE

Accessibility & contrast

On white

6.23
#4158BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4158BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158BF
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158BF#FFFFFF#000000##FFFFFF
##4158BF1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D67C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4158bf;
/* rgb */ color: rgb(65, 88, 191);
/* oklch */ color: oklch(50.1% 0.163 270.0);
Tailwind
colors: {
  custom: {
    50: '#8386d3',
    500: '#4158bf',
    950: '#000000',
  },
}
SCSS
$custom: #4158bf;
$custom-light: #8386d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4158bf",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 229.048,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50078,
    "c": 0.16327,
    "h": 270
  },
  "luminance": 0.11865
}

Semantic roles & 50–950 ramp

primary
#4158BF
secondary
#CAC092
accent
#C04FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4158BF

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

Preview Lab → · Contrast checker → · Palette generator →

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