#4151B1#4151B1

#4151B1 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.153 H 272.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#4151B1
RGBrgb(65, 81, 177)
HSLhsl(231, 46%, 47%)
HSVhsv(231, 63%, 69%)
CMYKcmyk(63.3%, 54.2%, 0%, 30.6%)
CIE-LABlab(38.17, 24.50, -53.19)
CIE-LCHlch(38.17, 58.56, 294.74°)
OKLaboklab(47.64% 0.0058 -0.1527)
OKLCHoklch(47.64% 0.153 272.2)
XYZxyz(13.0556, 10.1819, 42.8637)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151B1 #B1A141
analogous
#4189B1 #4151B1 #6941B1
triadic
#4151B1 #B14151 #51B141
tetradic
#4151B1 #B14189 #B1A141 #41B169
square
#4151B1 #B14189 #B1A141 #41B169
split-complementary
#4151B1 #B16941 #89B141
monochromatic
#202857 #313D84 #4151B1 #6875C7 #959ED8

Accessibility & contrast

On white

6.92
#4151B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4151B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151B1
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151B1#FFFFFF#000000##FFFFFF
##4151B11.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5FB4
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4151b1;
/* rgb */ color: rgb(65, 81, 177);
/* oklch */ color: oklch(47.6% 0.153 272.2);
Tailwind
colors: {
  custom: {
    50: '#8181c9',
    500: '#4151b1',
    950: '#000000',
  },
}
SCSS
$custom: #4151b1;
$custom-light: #8181c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4151b1",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 177
  },
  "hsl": {
    "h": 231.429,
    "s": 46.281,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47635,
    "c": 0.15278,
    "h": 272.2
  },
  "luminance": 0.10183
}

Semantic roles & 50–950 ramp

primary
#4151B1
secondary
#C3BB8A
accent
#C352D6
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4151B1

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

Preview Lab → · Contrast checker → · Palette generator →

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