#4151C8#4151C8

#4151C8 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.5% C 0.184 H 272.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#4151C8
RGBrgb(65, 81, 200)
HSLhsl(233, 55%, 52%)
HSVhsv(233, 68%, 78%)
CMYKcmyk(67.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(39.88, 32.58, -63.87)
CIE-LCHlch(39.88, 71.70, 297.02°)
OKLaboklab(49.45% 0.0064 -0.1841)
OKLCHoklch(49.45% 0.184 272)
XYZxyz(15.5442, 11.1774, 55.9707)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151C8 #C8B841
analogous
#4195C8 #4151C8 #7541C8
triadic
#4151C8 #C84151 #51C841
tetradic
#4151C8 #C84195 #C8B841 #41C875
square
#4151C8 #C84195 #C8B841 #41C875
split-complementary
#4151C8 #C87541 #95C841
monochromatic
#20296F #2E3B9E #4151C8 #707CD6 #A0A8E3

Accessibility & contrast

On white

6.49
#4151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4151C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151C8
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151C8#FFFFFF#000000##FFFFFF
##4151C81.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0058C6
Tritanopia (blue-blind)
#006F85
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4151c8;
/* rgb */ color: rgb(65, 81, 200);
/* oklch */ color: oklch(49.5% 0.184 272.0);
Tailwind
colors: {
  custom: {
    50: '#8681da',
    500: '#4151c8',
    950: '#000000',
  },
}
SCSS
$custom: #4151c8;
$custom-light: #8681da;
$custom-dark: #000000;
JSON
{
  "hex": "#4151c8",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 232.889,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49451,
    "c": 0.18419,
    "h": 272
  },
  "luminance": 0.11179
}

Semantic roles & 50–950 ramp

primary
#4151C8
secondary
#D0C995
accent
#CD49DE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4151C8

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

Preview Lab → · Contrast checker → · Palette generator →

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