#4154D7#4154D7

#4154D7 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.2% C 0.200 H 271.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#4154D7
RGBrgb(65, 84, 215)
HSLhsl(232, 65%, 55%)
HSVhsv(232, 70%, 84%)
CMYKcmyk(69.8%, 60.9%, 0%, 15.7%)
CIE-LABlab(41.80, 35.93, -69.39)
CIE-LCHlch(41.80, 78.14, 297.38°)
OKLaboklab(51.24% 0.0038 -0.2002)
OKLCHoklch(51.24% 0.2 271.1)
XYZxyz(17.6119, 12.3690, 65.7361)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4154D7 #D7C441
analogous
#419FD7 #4154D7 #7941D7
triadic
#4154D7 #D74154 #54D741
tetradic
#4154D7 #D7419F #D7C441 #41D779
square
#4154D7 #D7419F #D7C441 #41D779
split-complementary
#4154D7 #D77941 #9FD741
monochromatic
#1B2882 #2638B5 #4154D7 #7482E2 #A6AFEC

Accessibility & contrast

On white

6.04
#4154D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4154D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4154D7
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4154D7#FFFFFF#000000##FFFFFF
##4154D71.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#00758D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4154d7;
/* rgb */ color: rgb(65, 84, 215);
/* oklch */ color: oklch(51.2% 0.200 271.1);
Tailwind
colors: {
  custom: {
    50: '#8884e4',
    500: '#4154d7',
    950: '#000000',
  },
}
SCSS
$custom: #4154d7;
$custom-light: #8884e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4154d7",
  "rgb": {
    "r": 65,
    "g": 84,
    "b": 215
  },
  "hsl": {
    "h": 232.4,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51241,
    "c": 0.20028,
    "h": 271.1
  },
  "luminance": 0.12371
}

Semantic roles & 50–950 ramp

primary
#4154D7
secondary
#D9D19A
accent
#D340E8
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #4154D7

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

Preview Lab → · Contrast checker → · Palette generator →

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