#4157D8#4157D8

#4157D8 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.9% C 0.198 H 270.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#4157D8
RGBrgb(65, 87, 216)
HSLhsl(231, 66%, 55%)
HSVhsv(231, 70%, 85%)
CMYKcmyk(69.9%, 59.7%, 0%, 15.3%)
CIE-LABlab(42.61, 34.40, -68.64)
CIE-LCHlch(42.61, 76.78, 296.62°)
OKLaboklab(51.87% 0.0016 -0.198)
OKLCHoklch(51.87% 0.198 270.5)
XYZxyz(17.9786, 12.8963, 66.4942)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157D8 #D8C241
analogous
#41A3D8 #4157D8 #7641D8
triadic
#4157D8 #D84157 #57D841
tetradic
#4157D8 #D841A3 #D8C241 #41D876
square
#4157D8 #D841A3 #D8C241 #41D876
split-complementary
#4157D8 #D87641 #A3D841
monochromatic
#1B2A84 #253BB6 #4157D8 #7484E2 #A7B1ED

Accessibility & contrast

On white

5.87
#4157D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4157D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157D8
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157D8#FFFFFF#000000##FFFFFF
##4157D81.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00778F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4157d8;
/* rgb */ color: rgb(65, 87, 216);
/* oklch */ color: oklch(51.9% 0.198 270.5);
Tailwind
colors: {
  custom: {
    50: '#8886e5',
    500: '#4157d8',
    950: '#000000',
  },
}
SCSS
$custom: #4157d8;
$custom-light: #8886e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4157d8",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 216
  },
  "hsl": {
    "h": 231.258,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51865,
    "c": 0.19803,
    "h": 270.5
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#4157D8
secondary
#DAD19B
accent
#D03FE9
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4157D8

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

Preview Lab → · Contrast checker → · Palette generator →

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