#4151E2#4151E2

#4151E2 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.7% C 0.218 H 271.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#4151E2
RGBrgb(65, 81, 226)
HSLhsl(234, 74%, 57%)
HSVhsv(234, 71%, 89%)
CMYKcmyk(71.2%, 64.2%, 0%, 11.4%)
CIE-LABlab(42.00, 41.57, -75.34)
CIE-LCHlch(42.00, 86.04, 298.89°)
OKLaboklab(51.67% 0.0054 -0.2177)
OKLCHoklch(51.67% 0.218 271.4)
XYZxyz(18.8452, 12.4978, 73.3559)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151E2 #E2D241
analogous
#41A2E2 #4151E2 #8141E2
triadic
#4151E2 #E24151 #51E241
tetradic
#4151E2 #E241A2 #E2D241 #41E281
square
#4151E2 #E241A2 #E2D241 #41E281
split-complementary
#4151E2 #E28141 #A2E241
monochromatic
#162392 #1E2FC7 #4151E2 #7682EA #ABB2F2

Accessibility & contrast

On white

6.00
#4151E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#4151E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151E2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151E2#FFFFFF#000000##FFFFFF
##4151E21.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#005CDF
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4151e2;
/* rgb */ color: rgb(65, 81, 226);
/* oklch */ color: oklch(51.7% 0.218 271.4);
Tailwind
colors: {
  custom: {
    50: '#8b82ec',
    500: '#4151e2',
    950: '#000000',
  },
}
SCSS
$custom: #4151e2;
$custom-light: #8b82ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4151e2",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 234.037,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51668,
    "c": 0.21778,
    "h": 271.4
  },
  "luminance": 0.125
}

Semantic roles & 50–950 ramp

primary
#4151E2
secondary
#E0DA9F
accent
#DE38F0
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4151E2

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

Preview Lab → · Contrast checker → · Palette generator →

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