#4151AB#4151AB

#4151AB is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.144 H 272.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#4151AB
RGBrgb(65, 81, 171)
HSLhsl(231, 45%, 46%)
HSVhsv(231, 62%, 67%)
CMYKcmyk(62%, 52.6%, 0%, 32.9%)
CIE-LABlab(37.75, 22.39, -50.31)
CIE-LCHlch(37.75, 55.07, 293.99°)
OKLaboklab(47.19% 0.0054 -0.1442)
OKLCHoklch(47.19% 0.144 272.1)
XYZxyz(12.4706, 9.9479, 39.7831)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151AB #AB9B41
analogous
#4186AB #4151AB #6641AB
triadic
#4151AB #AB4151 #51AB41
tetradic
#4151AB #AB4186 #AB9B41 #41AB66
square
#4151AB #AB4186 #AB9B41 #41AB66
split-complementary
#4151AB #AB6641 #86AB41
monochromatic
#1F2752 #303C7F #4151AB #6573C4 #919BD5

Accessibility & contrast

On white

7.02
#4151AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4151AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4151AB
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151AB#FFFFFF#000000##FFFFFF
##4151AB1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4151ab;
/* rgb */ color: rgb(65, 81, 171);
/* oklch */ color: oklch(47.2% 0.144 272.1);
Tailwind
colors: {
  custom: {
    50: '#8081c5',
    500: '#4151ab',
    950: '#000000',
  },
}
SCSS
$custom: #4151ab;
$custom-light: #8081c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4151ab",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 230.943,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47187,
    "c": 0.1443,
    "h": 272.1
  },
  "luminance": 0.09949
}

Semantic roles & 50–950 ramp

primary
#4151AB
secondary
#C1B887
accent
#C153D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4151AB

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

Preview Lab → · Contrast checker → · Palette generator →

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