#4151C5#4151C5

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

Color values

HEX#4151C5
RGBrgb(65, 81, 197)
HSLhsl(233, 53%, 51%)
HSVhsv(233, 67%, 77%)
CMYKcmyk(67%, 58.9%, 0%, 22.7%)
CIE-LABlab(39.65, 31.53, -62.51)
CIE-LCHlch(39.65, 70.01, 296.77°)
OKLaboklab(49.21% 0.0064 -0.1801)
OKLCHoklch(49.21% 0.18 272)
XYZxyz(15.1971, 11.0385, 54.1423)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151C5 #C5B541
analogous
#4193C5 #4151C5 #7341C5
triadic
#4151C5 #C54151 #51C541
tetradic
#4151C5 #C54193 #C5B541 #41C573
square
#4151C5 #C54193 #C5B541 #41C573
split-complementary
#4151C5 #C57341 #93C541
monochromatic
#212A6B #2F3C9A #4151C5 #707CD3 #9FA7E2

Accessibility & contrast

On white

6.55
#4151C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4151C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151C5
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151C5#FFFFFF#000000##FFFFFF
##4151C51.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#0058C3
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4151c5;
/* rgb */ color: rgb(65, 81, 197);
/* oklch */ color: oklch(49.2% 0.180 272.0);
Tailwind
colors: {
  custom: {
    50: '#8581d7',
    500: '#4151c5',
    950: '#000000',
  },
}
SCSS
$custom: #4151c5;
$custom-light: #8581d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4151c5",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 197
  },
  "hsl": {
    "h": 232.727,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49206,
    "c": 0.18019,
    "h": 272
  },
  "luminance": 0.1104
}

Semantic roles & 50–950 ramp

primary
#4151C5
secondary
#CEC794
accent
#CB4BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4151C5

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

Preview Lab → · Contrast checker → · Palette generator →

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