#4158C5#4158C5

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

Color values

HEX#4158C5
RGBrgb(65, 88, 197)
HSLhsl(230, 53%, 51%)
HSVhsv(230, 67%, 77%)
CMYKcmyk(67%, 55.3%, 0%, 22.7%)
CIE-LABlab(41.43, 27.07, -59.61)
CIE-LCHlch(41.43, 65.47, 294.42°)
OKLaboklab(50.54% 0.0005 -0.1715)
OKLCHoklch(50.54% 0.171 270.2)
XYZxyz(15.7443, 12.1330, 54.3247)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4158C5 #C5AE41
analogous
#419AC5 #4158C5 #6C41C5
triadic
#4158C5 #C54158 #58C541
tetradic
#4158C5 #C5419A #C5AE41 #41C56C
square
#4158C5 #C5419A #C5AE41 #41C56C
split-complementary
#4158C5 #C56C41 #9AC541
monochromatic
#212E6B #2F429A #4158C5 #7081D3 #9FAAE2

Accessibility & contrast

On white

6.13
#4158C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4158C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4158C5
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4158C5#FFFFFF#000000##FFFFFF
##4158C51.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4158c5;
/* rgb */ color: rgb(65, 88, 197);
/* oklch */ color: oklch(50.5% 0.171 270.2);
Tailwind
colors: {
  custom: {
    50: '#8486d7',
    500: '#4158c5',
    950: '#000000',
  },
}
SCSS
$custom: #4158c5;
$custom-light: #8486d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4158c5",
  "rgb": {
    "r": 65,
    "g": 88,
    "b": 197
  },
  "hsl": {
    "h": 229.545,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50536,
    "c": 0.17149,
    "h": 270.2
  },
  "luminance": 0.12134
}

Semantic roles & 50–950 ramp

primary
#4158C5
secondary
#CEC494
accent
#C34BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4158C5

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

Preview Lab → · Contrast checker → · Palette generator →

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