#4157CE#4157CE

#4157CE is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.185 H 270.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#4157CE
RGBrgb(65, 87, 206)
HSLhsl(231, 59%, 53%)
HSVhsv(231, 68%, 81%)
CMYKcmyk(68.4%, 57.8%, 0%, 19.2%)
CIE-LABlab(41.84, 30.89, -64.15)
CIE-LCHlch(41.84, 71.20, 295.71°)
OKLaboklab(51.05% 0.0016 -0.1848)
OKLCHoklch(51.05% 0.185 270.5)
XYZxyz(16.7250, 12.3948, 59.8916)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157CE #CEB841
analogous
#419ECE #4157CE #7141CE
triadic
#4157CE #CE4157 #57CE41
tetradic
#4157CE #CE419E #CEB841 #41CE71
square
#4157CE #CE419E #CEB841 #41CE71
split-complementary
#4157CE #CE7141 #9ECE41
monochromatic
#1E2C76 #2B3EA7 #4157CE #7282DB #A2ADE7

Accessibility & contrast

On white

6.04
#4157CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4157CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157CE
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157CE#FFFFFF#000000##FFFFFF
##4157CE1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4157ce;
/* rgb */ color: rgb(65, 87, 206);
/* oklch */ color: oklch(51.1% 0.185 270.5);
Tailwind
colors: {
  custom: {
    50: '#8686de',
    500: '#4157ce',
    950: '#000000',
  },
}
SCSS
$custom: #4157ce;
$custom-light: #8686de;
$custom-dark: #000000;
JSON
{
  "hex": "#4157ce",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 230.638,
    "s": 58.996,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51052,
    "c": 0.18485,
    "h": 270.5
  },
  "luminance": 0.12396
}

Semantic roles & 50–950 ramp

primary
#4157CE
secondary
#D4CA97
accent
#CA46E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4157CE

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

Preview Lab → · Contrast checker → · Palette generator →

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