#4158C7#4158C7

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

Color values

HEX#4158C7
RGBrgb(65, 88, 199)
HSLhsl(230, 54%, 52%)
HSVhsv(230, 67%, 78%)
CMYKcmyk(67.3%, 55.8%, 0%, 22%)
CIE-LABlab(41.57, 27.78, -60.54)
CIE-LCHlch(41.57, 66.61, 294.65°)
OKLaboklab(50.69% 0.0006 -0.1742)
OKLCHoklch(50.69% 0.174 270.2)
XYZxyz(15.9750, 12.2253, 55.5396)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158C7 #C7B041
analogous
#419BC7 #4158C7 #6D41C7
triadic
#4158C7 #C74158 #58C741
tetradic
#4158C7 #C7419B #C7B041 #41C76D
square
#4158C7 #C7419B #C7B041 #41C76D
split-complementary
#4158C7 #C76D41 #9BC741
monochromatic
#202D6D #2E419D #4158C7 #7082D5 #A0ABE3

Accessibility & contrast

On white

6.10
#4158C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4158C7
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158C7#FFFFFF#000000##FFFFFF
##4158C71.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4158c7;
/* rgb */ color: rgb(65, 88, 199);
/* oklch */ color: oklch(50.7% 0.174 270.2);
Tailwind
colors: {
  custom: {
    50: '#8586d9',
    500: '#4158c7',
    950: '#000000',
  },
}
SCSS
$custom: #4158c7;
$custom-light: #8586d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4158c7",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 199
  },
  "hsl": {
    "h": 229.701,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5069,
    "c": 0.1742,
    "h": 270.2
  },
  "luminance": 0.12227
}

Semantic roles & 50–950 ramp

primary
#4158C7
secondary
#CFC595
accent
#C44ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4158C7

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

Preview Lab → · Contrast checker → · Palette generator →

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