#4158C4#4158C4

#4158C4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.5% C 0.170 H 270.1°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#4158C4
RGBrgb(65, 88, 196)
HSLhsl(229, 53%, 51%)
HSVhsv(229, 67%, 77%)
CMYKcmyk(66.8%, 55.1%, 0%, 23.1%)
CIE-LABlab(41.35, 26.72, -59.15)
CIE-LCHlch(41.35, 64.90, 294.31°)
OKLaboklab(50.46% 0.0004 -0.1701)
OKLCHoklch(50.46% 0.17 270.1)
XYZxyz(15.6301, 12.0873, 53.7232)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158C4 #C4AD41
analogous
#4199C4 #4158C4 #6B41C4
triadic
#4158C4 #C44158 #58C441
tetradic
#4158C4 #C44199 #C4AD41 #41C46B
square
#4158C4 #C44199 #C4AD41 #41C46B
split-complementary
#4158C4 #C46B41 #99C441
monochromatic
#212E6A #2F4298 #4158C4 #7081D3 #9EAAE1

Accessibility & contrast

On white

6.14
#4158C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4158C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158C4
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158C4#FFFFFF#000000##FFFFFF
##4158C41.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4158c4;
/* rgb */ color: rgb(65, 88, 196);
/* oklch */ color: oklch(50.5% 0.170 270.1);
Tailwind
colors: {
  custom: {
    50: '#8486d7',
    500: '#4158c4',
    950: '#000000',
  },
}
SCSS
$custom: #4158c4;
$custom-light: #8486d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4158c4",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 196
  },
  "hsl": {
    "h": 229.466,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50459,
    "c": 0.17012,
    "h": 270.1
  },
  "luminance": 0.12089
}

Semantic roles & 50–950 ramp

primary
#4158C4
secondary
#CDC393
accent
#C34CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4158C4

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

Preview Lab → · Contrast checker → · Palette generator →

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