#4158C0#4158C0

#4158C0 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.2% C 0.165 H 270.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4158C0
RGBrgb(65, 88, 192)
HSLhsl(229, 50%, 50%)
HSVhsv(229, 66%, 75%)
CMYKcmyk(66.1%, 54.2%, 0%, 24.7%)
CIE-LABlab(41.07, 25.30, -57.29)
CIE-LCHlch(41.07, 62.63, 293.82°)
OKLaboklab(50.15% 0.0002 -0.1646)
OKLCHoklch(50.15% 0.165 270.1)
XYZxyz(15.1809, 11.9076, 51.3573)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158C0 #C0A941
analogous
#4197C0 #4158C0 #6941C0
triadic
#4158C0 #C04158 #58C041
tetradic
#4158C0 #C04197 #C0A941 #41C069
square
#4158C0 #C04197 #C0A941 #41C069
split-complementary
#4158C0 #C06941 #97C041
monochromatic
#222E65 #314393 #4158C0 #6F80CF #9DA9DE

Accessibility & contrast

On white

6.21
#4158C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4158C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158C0
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158C0#FFFFFF#000000##FFFFFF
##4158C01.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0967C4
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4158c0;
/* rgb */ color: rgb(65, 88, 192);
/* oklch */ color: oklch(50.2% 0.165 270.1);
Tailwind
colors: {
  custom: {
    50: '#8486d4',
    500: '#4158c0',
    950: '#000000',
  },
}
SCSS
$custom: #4158c0;
$custom-light: #8486d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4158c0",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 192
  },
  "hsl": {
    "h": 229.134,
    "s": 50.198,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50154,
    "c": 0.16465,
    "h": 270.1
  },
  "luminance": 0.11909
}

Semantic roles & 50–950 ramp

primary
#4158C0
secondary
#CBC092
accent
#C04EDA
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4158C0

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

Preview Lab → · Contrast checker → · Palette generator →

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