#4157C7#4157C7

#4157C7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.5% C 0.175 H 270.5°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#4157C7
RGBrgb(65, 87, 199)
HSLhsl(230, 54%, 52%)
HSVhsv(230, 67%, 78%)
CMYKcmyk(67.3%, 56.3%, 0%, 22%)
CIE-LABlab(41.31, 28.42, -60.96)
CIE-LCHlch(41.31, 67.25, 294.99°)
OKLaboklab(50.5% 0.0014 -0.1754)
OKLCHoklch(50.5% 0.175 270.5)
XYZxyz(15.8935, 12.0622, 55.5124)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157C7 #C7B141
analogous
#419AC7 #4157C7 #6E41C7
triadic
#4157C7 #C74157 #57C741
tetradic
#4157C7 #C7419A #C7B141 #41C76E
square
#4157C7 #C7419A #C7B141 #41C76E
split-complementary
#4157C7 #C76E41 #9AC741
monochromatic
#202D6D #2E409D #4157C7 #7081D5 #A0ABE3

Accessibility & contrast

On white

6.15
#4157C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#4157C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157C7
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157C7#FFFFFF#000000##FFFFFF
##4157C71.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4157c7;
/* rgb */ color: rgb(65, 87, 199);
/* oklch */ color: oklch(50.5% 0.175 270.5);
Tailwind
colors: {
  custom: {
    50: '#8586d9',
    500: '#4157c7',
    950: '#000000',
  },
}
SCSS
$custom: #4157c7;
$custom-light: #8586d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4157c7",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 199
  },
  "hsl": {
    "h": 230.149,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50498,
    "c": 0.17545,
    "h": 270.5
  },
  "luminance": 0.12064
}

Semantic roles & 50–950 ramp

primary
#4157C7
secondary
#CFC695
accent
#C64ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4157C7

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

Preview Lab → · Contrast checker → · Palette generator →

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