#4151B5#4151B5

#4151B5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.158 H 272.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#4151B5
RGBrgb(65, 81, 181)
HSLhsl(232, 47%, 48%)
HSVhsv(232, 64%, 71%)
CMYKcmyk(64.1%, 55.2%, 0%, 29%)
CIE-LABlab(38.45, 25.91, -55.09)
CIE-LCHlch(38.45, 60.88, 295.19°)
OKLaboklab(47.94% 0.006 -0.1582)
OKLCHoklch(47.94% 0.158 272.2)
XYZxyz(13.4601, 10.3437, 44.9943)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151B5 #B5A541
analogous
#418BB5 #4151B5 #6B41B5
triadic
#4151B5 #B54151 #51B541
tetradic
#4151B5 #B5418B #B5A541 #41B56B
square
#4151B5 #B5418B #B5A541 #41B56B
split-complementary
#4151B5 #B56B41 #8BB541
monochromatic
#21295B #313D88 #4151B5 #6A77C9 #97A0DA

Accessibility & contrast

On white

6.84
#4151B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4151B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151B5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151B5#FFFFFF#000000##FFFFFF
##4151B51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B8
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4151b5;
/* rgb */ color: rgb(65, 81, 181);
/* oklch */ color: oklch(47.9% 0.158 272.2);
Tailwind
colors: {
  custom: {
    50: '#8281cc',
    500: '#4151b5',
    950: '#000000',
  },
}
SCSS
$custom: #4151b5;
$custom-light: #8281cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4151b5",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 181
  },
  "hsl": {
    "h": 231.724,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4794,
    "c": 0.15836,
    "h": 272.2
  },
  "luminance": 0.10345
}

Semantic roles & 50–950 ramp

primary
#4151B5
secondary
#C5BD8C
accent
#C451D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4151B5

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

Preview Lab → · Contrast checker → · Palette generator →

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