#4151C6#4151C6

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

Color values

HEX#4151C6
RGBrgb(65, 81, 198)
HSLhsl(233, 54%, 52%)
HSVhsv(233, 67%, 78%)
CMYKcmyk(67.2%, 59.1%, 0%, 22.4%)
CIE-LABlab(39.72, 31.88, -62.96)
CIE-LCHlch(39.72, 70.57, 296.85°)
OKLaboklab(49.29% 0.0064 -0.1814)
OKLCHoklch(49.29% 0.182 272)
XYZxyz(15.3120, 11.0845, 54.7477)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151C6 #C6B641
analogous
#4194C6 #4151C6 #7441C6
triadic
#4151C6 #C64151 #51C641
tetradic
#4151C6 #C64194 #C6B641 #41C674
square
#4151C6 #C64194 #C6B641 #41C674
split-complementary
#4151C6 #C67441 #94C641
monochromatic
#202A6C #2F3C9B #4151C6 #707CD4 #9FA7E2

Accessibility & contrast

On white

6.53
#4151C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4151C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151C6
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151C6#FFFFFF#000000##FFFFFF
##4151C61.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4151c6;
/* rgb */ color: rgb(65, 81, 198);
/* oklch */ color: oklch(49.3% 0.182 272.0);
Tailwind
colors: {
  custom: {
    50: '#8581d8',
    500: '#4151c6',
    950: '#000000',
  },
}
SCSS
$custom: #4151c6;
$custom-light: #8581d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4151c6",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 198
  },
  "hsl": {
    "h": 232.782,
    "s": 53.846,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49287,
    "c": 0.18153,
    "h": 272
  },
  "luminance": 0.11086
}

Semantic roles & 50–950 ramp

primary
#4151C6
secondary
#CFC894
accent
#CC4BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4151C6

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

Preview Lab → · Contrast checker → · Palette generator →

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