#4158C6#4158C6

#4158C6 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.6% C 0.173 H 270.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#4158C6
RGBrgb(65, 88, 198)
HSLhsl(230, 54%, 52%)
HSVhsv(230, 67%, 78%)
CMYKcmyk(67.2%, 55.6%, 0%, 22.4%)
CIE-LABlab(41.50, 27.42, -60.08)
CIE-LCHlch(41.50, 66.04, 294.54°)
OKLaboklab(50.61% 0.0005 -0.1728)
OKLCHoklch(50.61% 0.173 270.2)
XYZxyz(15.8593, 12.1790, 54.9301)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158C6 #C6AF41
analogous
#419BC6 #4158C6 #6D41C6
triadic
#4158C6 #C64158 #58C641
tetradic
#4158C6 #C6419B #C6AF41 #41C66D
square
#4158C6 #C6419B #C6AF41 #41C66D
split-complementary
#4158C6 #C66D41 #9BC641
monochromatic
#202E6C #2F419B #4158C6 #7081D4 #9FABE2

Accessibility & contrast

On white

6.11
#4158C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#4158C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158C6
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158C6#FFFFFF#000000##FFFFFF
##4158C61.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4158c6;
/* rgb */ color: rgb(65, 88, 198);
/* oklch */ color: oklch(50.6% 0.173 270.2);
Tailwind
colors: {
  custom: {
    50: '#8586d8',
    500: '#4158c6',
    950: '#000000',
  },
}
SCSS
$custom: #4158c6;
$custom-light: #8586d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4158c6",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 198
  },
  "hsl": {
    "h": 229.624,
    "s": 53.846,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50613,
    "c": 0.17285,
    "h": 270.2
  },
  "luminance": 0.1218
}

Semantic roles & 50–950 ramp

primary
#4158C6
secondary
#CFC594
accent
#C44BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4158C6

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

Preview Lab → · Contrast checker → · Palette generator →

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