#4151DF#4151DF

#4151DF is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.4% C 0.214 H 271.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#4151DF
RGBrgb(65, 81, 223)
HSLhsl(234, 71%, 56%)
HSVhsv(234, 71%, 87%)
CMYKcmyk(70.9%, 63.7%, 0%, 12.5%)
CIE-LABlab(41.74, 40.55, -74.04)
CIE-LCHlch(41.74, 84.42, 298.70°)
OKLaboklab(51.41% 0.0056 -0.2139)
OKLCHoklch(51.41% 0.214 271.5)
XYZxyz(18.4372, 12.3345, 71.2069)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151DF #DFCF41
analogous
#41A0DF #4151DF #8041DF
triadic
#4151DF #DF4151 #51DF41
tetradic
#4151DF #DF41A0 #DFCF41 #41DF80
square
#4151DF #DF41A0 #DFCF41 #41DF80
split-complementary
#4151DF #DF8041 #A0DF41
monochromatic
#18248E #2131C2 #4151DF #7581E8 #AAB1F1

Accessibility & contrast

On white

6.06
#4151DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4151DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151DF
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151DF#FFFFFF#000000##FFFFFF
##4151DF1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE4
Deuteranopia (green-blind)
#005BDC
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4151df;
/* rgb */ color: rgb(65, 81, 223);
/* oklch */ color: oklch(51.4% 0.214 271.5);
Tailwind
colors: {
  custom: {
    50: '#8a82ea',
    500: '#4151df',
    950: '#000000',
  },
}
SCSS
$custom: #4151df;
$custom-light: #8a82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4151df",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 233.924,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51405,
    "c": 0.21399,
    "h": 271.5
  },
  "luminance": 0.12336
}

Semantic roles & 50–950 ramp

primary
#4151DF
secondary
#DED89D
accent
#DC3AEE
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #4151DF

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

Preview Lab → · Contrast checker → · Palette generator →

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