#4158C8#4158C8

#4158C8 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.8% C 0.176 H 270.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#4158C8
RGBrgb(65, 88, 200)
HSLhsl(230, 55%, 52%)
HSVhsv(230, 68%, 78%)
CMYKcmyk(67.5%, 56%, 0%, 21.6%)
CIE-LABlab(41.65, 28.13, -61.00)
CIE-LCHlch(41.65, 67.17, 294.76°)
OKLaboklab(50.77% 0.0006 -0.1756)
OKLCHoklch(50.77% 0.176 270.2)
XYZxyz(16.0915, 12.2719, 56.1531)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158C8 #C8B141
analogous
#419BC8 #4158C8 #6E41C8
triadic
#4158C8 #C84158 #58C841
tetradic
#4158C8 #C8419B #C8B141 #41C86E
square
#4158C8 #C8419B #C8B141 #41C86E
split-complementary
#4158C8 #C86E41 #9BC841
monochromatic
#202D6F #2E419E #4158C8 #7082D6 #A0ABE3

Accessibility & contrast

On white

6.08
#4158C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#4158C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158C8
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158C8#FFFFFF#000000##FFFFFF
##4158C81.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4158c8;
/* rgb */ color: rgb(65, 88, 200);
/* oklch */ color: oklch(50.8% 0.176 270.2);
Tailwind
colors: {
  custom: {
    50: '#8586d9',
    500: '#4158c8',
    950: '#000000',
  },
}
SCSS
$custom: #4158c8;
$custom-light: #8586d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4158c8",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 200
  },
  "hsl": {
    "h": 229.778,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.50768,
    "c": 0.17556,
    "h": 270.2
  },
  "luminance": 0.12273
}

Semantic roles & 50–950 ramp

primary
#4158C8
secondary
#D0C695
accent
#C549DE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4158C8

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

Preview Lab → · Contrast checker → · Palette generator →

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