#4151D6#4151D6

#4151D6 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 50.6% C 0.203 H 271.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#4151D6
RGBrgb(65, 81, 214)
HSLhsl(234, 65%, 55%)
HSVhsv(234, 70%, 84%)
CMYKcmyk(69.6%, 62.1%, 0%, 16.1%)
CIE-LABlab(41.00, 37.45, -70.12)
CIE-LCHlch(41.00, 79.49, 298.10°)
OKLaboklab(50.63% 0.006 -0.2024)
OKLCHoklch(50.63% 0.203 271.7)
XYZxyz(17.2559, 11.8620, 64.9855)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151D6 #D6C641
analogous
#419CD6 #4151D6 #7C41D6
triadic
#4151D6 #D64151 #51D641
tetradic
#4151D6 #D6419C #D6C641 #41D67C
square
#4151D6 #D6419C #D6C641 #41D67C
split-complementary
#4151D6 #D67C41 #9CD641
monochromatic
#1C2781 #2736B3 #4151D6 #737FE1 #A6ADEC

Accessibility & contrast

On white

6.23
#4151D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4151D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151D6
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151D6#FFFFFF#000000##FFFFFF
##4151D61.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#005AD3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4151d6;
/* rgb */ color: rgb(65, 81, 214);
/* oklch */ color: oklch(50.6% 0.203 271.7);
Tailwind
colors: {
  custom: {
    50: '#8882e4',
    500: '#4151d6',
    950: '#000000',
  },
}
SCSS
$custom: #4151d6;
$custom-light: #8882e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4151d6",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 233.557,
    "s": 64.502,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50625,
    "c": 0.20252,
    "h": 271.7
  },
  "luminance": 0.11864
}

Semantic roles & 50–950 ramp

primary
#4151D6
secondary
#D9D29A
accent
#D640E7
background
#F9F7FE
surface
#F1EEFC
border
#CBC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #4151D6

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

Preview Lab → · Contrast checker → · Palette generator →

#4151D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva