#4158BE#4158BE

#4158BE is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.0% C 0.162 H 270.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4158BE
RGBrgb(65, 88, 190)
HSLhsl(229, 49%, 50%)
HSVhsv(229, 66%, 75%)
CMYKcmyk(65.8%, 53.7%, 0%, 25.5%)
CIE-LABlab(40.93, 24.59, -56.35)
CIE-LCHlch(40.93, 61.48, 293.57°)
OKLaboklab(50% 0.0001 -0.1619)
OKLCHoklch(50% 0.162 270)
XYZxyz(14.9608, 11.8196, 50.1982)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158BE #BEA741
analogous
#4197BE #4158BE #6841BE
triadic
#4158BE #BE4158 #58BE41
tetradic
#4158BE #BE4197 #BEA741 #41BE68
square
#4158BE #BE4197 #BEA741 #41BE68
split-complementary
#4158BE #BE6841 #97BE41
monochromatic
#222E63 #314390 #4158BE #6F80CE #9CA8DD

Accessibility & contrast

On white

6.24
#4158BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4158BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158BE
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158BE#FFFFFF#000000##FFFFFF
##4158BE1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1066C2
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4158be;
/* rgb */ color: rgb(65, 88, 190);
/* oklch */ color: oklch(50.0% 0.162 270.0);
Tailwind
colors: {
  custom: {
    50: '#8386d2',
    500: '#4158be',
    950: '#000000',
  },
}
SCSS
$custom: #4158be;
$custom-light: #8386d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4158be",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 190
  },
  "hsl": {
    "h": 228.96,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.50003,
    "c": 0.16189,
    "h": 270
  },
  "luminance": 0.11821
}

Semantic roles & 50–950 ramp

primary
#4158BE
secondary
#C9BF91
accent
#BF4FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4158BE

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

Preview Lab → · Contrast checker → · Palette generator →

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