#4157D7#4157D7

#4157D7 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.8% C 0.197 H 270.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#4157D7
RGBrgb(65, 87, 215)
HSLhsl(231, 65%, 55%)
HSVhsv(231, 70%, 84%)
CMYKcmyk(69.8%, 59.5%, 0%, 15.7%)
CIE-LABlab(42.53, 34.05, -68.19)
CIE-LCHlch(42.53, 76.22, 296.54°)
OKLaboklab(51.78% 0.0016 -0.1967)
OKLCHoklch(51.78% 0.197 270.5)
XYZxyz(17.8497, 12.8447, 65.8154)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157D7 #D7C141
analogous
#41A2D7 #4157D7 #7641D7
triadic
#4157D7 #D74157 #57D741
tetradic
#4157D7 #D741A2 #D7C141 #41D776
square
#4157D7 #D741A2 #D7C141 #41D776
split-complementary
#4157D7 #D77641 #A2D741
monochromatic
#1B2A82 #263BB5 #4157D7 #7484E2 #A6B0EC

Accessibility & contrast

On white

5.88
#4157D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#4157D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157D7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157D7#FFFFFF#000000##FFFFFF
##4157D71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#00778F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4157d7;
/* rgb */ color: rgb(65, 87, 215);
/* oklch */ color: oklch(51.8% 0.197 270.5);
Tailwind
colors: {
  custom: {
    50: '#8886e4',
    500: '#4157d7',
    950: '#000000',
  },
}
SCSS
$custom: #4157d7;
$custom-light: #8886e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4157d7",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 215
  },
  "hsl": {
    "h": 231.2,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51783,
    "c": 0.19672,
    "h": 270.5
  },
  "luminance": 0.12847
}

Semantic roles & 50–950 ramp

primary
#4157D7
secondary
#D9D09A
accent
#CF40E8
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4157D7

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

Preview Lab → · Contrast checker → · Palette generator →

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