#4151C7#4151C7

#4151C7 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.4% C 0.183 H 272.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#4151C7
RGBrgb(65, 81, 199)
HSLhsl(233, 54%, 52%)
HSVhsv(233, 67%, 78%)
CMYKcmyk(67.3%, 59.3%, 0%, 22%)
CIE-LABlab(39.80, 32.23, -63.42)
CIE-LCHlch(39.80, 71.14, 296.94°)
OKLaboklab(49.37% 0.0064 -0.1827)
OKLCHoklch(49.37% 0.183 272)
XYZxyz(15.4277, 11.1308, 55.3572)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151C7 #C7B741
analogous
#4194C7 #4151C7 #7441C7
triadic
#4151C7 #C74151 #51C741
tetradic
#4151C7 #C74194 #C7B741 #41C774
square
#4151C7 #C74194 #C7B741 #41C774
split-complementary
#4151C7 #C77441 #94C741
monochromatic
#20296D #2E3B9D #4151C7 #707CD5 #A0A8E3

Accessibility & contrast

On white

6.51
#4151C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4151C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151C7
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151C7#FFFFFF#000000##FFFFFF
##4151C71.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4151c7;
/* rgb */ color: rgb(65, 81, 199);
/* oklch */ color: oklch(49.4% 0.183 272.0);
Tailwind
colors: {
  custom: {
    50: '#8581d9',
    500: '#4151c7',
    950: '#000000',
  },
}
SCSS
$custom: #4151c7;
$custom-light: #8581d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4151c7",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 232.836,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49369,
    "c": 0.18286,
    "h": 272
  },
  "luminance": 0.11132
}

Semantic roles & 50–950 ramp

primary
#4151C7
secondary
#CFC895
accent
#CC4ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4151C7

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

Preview Lab → · Contrast checker → · Palette generator →

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