#4151C4#4151C4

#4151C4 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.1% C 0.179 H 272.0°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#4151C4
RGBrgb(65, 81, 196)
HSLhsl(233, 53%, 51%)
HSVhsv(233, 67%, 77%)
CMYKcmyk(66.8%, 58.7%, 0%, 23.1%)
CIE-LABlab(39.57, 31.18, -62.05)
CIE-LCHlch(39.57, 69.45, 296.68°)
OKLaboklab(49.13% 0.0064 -0.1787)
OKLCHoklch(49.13% 0.179 272)
XYZxyz(15.0829, 10.9928, 53.5408)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151C4 #C4B441
analogous
#4192C4 #4151C4 #7241C4
triadic
#4151C4 #C44151 #51C441
tetradic
#4151C4 #C44192 #C4B441 #41C472
square
#4151C4 #C44192 #C4B441 #41C472
split-complementary
#4151C4 #C47241 #92C441
monochromatic
#212A6A #2F3C98 #4151C4 #707CD3 #9EA7E1

Accessibility & contrast

On white

6.56
#4151C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4151C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151C4
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151C4#FFFFFF#000000##FFFFFF
##4151C41.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4151c4;
/* rgb */ color: rgb(65, 81, 196);
/* oklch */ color: oklch(49.1% 0.179 272.0);
Tailwind
colors: {
  custom: {
    50: '#8581d7',
    500: '#4151c4',
    950: '#000000',
  },
}
SCSS
$custom: #4151c4;
$custom-light: #8581d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4151c4",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 196
  },
  "hsl": {
    "h": 232.672,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49125,
    "c": 0.17885,
    "h": 272
  },
  "luminance": 0.10994
}

Semantic roles & 50–950 ramp

primary
#4151C4
secondary
#CDC693
accent
#CA4CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4151C4

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

Preview Lab → · Contrast checker → · Palette generator →

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