#4157DE#4157DE

#4157DE is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.4% C 0.206 H 270.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#4157DE
RGBrgb(65, 87, 222)
HSLhsl(232, 70%, 56%)
HSVhsv(232, 71%, 87%)
CMYKcmyk(70.7%, 60.8%, 0%, 12.9%)
CIE-LABlab(43.08, 36.50, -71.29)
CIE-LCHlch(43.08, 80.09, 297.11°)
OKLaboklab(52.36% 0.0016 -0.2058)
OKLCHoklch(52.36% 0.206 270.4)
XYZxyz(18.7685, 13.2122, 70.6542)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157DE #DEC841
analogous
#41A6DE #4157DE #7A41DE
triadic
#4157DE #DE4157 #57DE41
tetradic
#4157DE #DE41A6 #DEC841 #41DE7A
square
#4157DE #DE41A6 #DEC841 #41DE7A
split-complementary
#4157DE #DE7A41 #A6DE41
monochromatic
#18298C #2138C0 #4157DE #7585E7 #A9B3F0

Accessibility & contrast

On white

5.76
#4157DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#4157DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157DE
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157DE#FFFFFF#000000##FFFFFF
##4157DE1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#005FDB
Tritanopia (blue-blind)
#007992
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4157de;
/* rgb */ color: rgb(65, 87, 222);
/* oklch */ color: oklch(52.4% 0.206 270.4);
Tailwind
colors: {
  custom: {
    50: '#8a86e9',
    500: '#4157de',
    950: '#000000',
  },
}
SCSS
$custom: #4157de;
$custom-light: #8a86e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4157de",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 222
  },
  "hsl": {
    "h": 231.592,
    "s": 70.404,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52364,
    "c": 0.2058,
    "h": 270.4
  },
  "luminance": 0.13214
}

Semantic roles & 50–950 ramp

primary
#4157DE
secondary
#DED59D
accent
#D43BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #4157DE

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

Preview Lab → · Contrast checker → · Palette generator →

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