#4152B5#4152B5

#4152B5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.1% C 0.157 H 271.8°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#4152B5
RGBrgb(65, 82, 181)
HSLhsl(231, 47%, 48%)
HSVhsv(231, 64%, 71%)
CMYKcmyk(64.1%, 54.7%, 0%, 29%)
CIE-LABlab(38.71, 25.27, -54.66)
CIE-LCHlch(38.71, 60.22, 294.81°)
OKLaboklab(48.14% 0.0051 -0.157)
OKLCHoklch(48.14% 0.157 271.8)
XYZxyz(13.5350, 10.4934, 45.0193)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152B5 #B5A441
analogous
#418CB5 #4152B5 #6A41B5
triadic
#4152B5 #B54152 #52B541
tetradic
#4152B5 #B5418C #B5A441 #41B56A
square
#4152B5 #B5418C #B5A441 #41B56A
split-complementary
#4152B5 #B56A41 #8CB541
monochromatic
#21295B #313E88 #4152B5 #6A78C9 #97A1DA

Accessibility & contrast

On white

6.78
#4152B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4152B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152B5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152B5#FFFFFF#000000##FFFFFF
##4152B51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4152b5;
/* rgb */ color: rgb(65, 82, 181);
/* oklch */ color: oklch(48.1% 0.157 271.8);
Tailwind
colors: {
  custom: {
    50: '#8282cc',
    500: '#4152b5',
    950: '#000000',
  },
}
SCSS
$custom: #4152b5;
$custom-light: #8282cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4152b5",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 181
  },
  "hsl": {
    "h": 231.207,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48136,
    "c": 0.15707,
    "h": 271.8
  },
  "luminance": 0.10495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4152B5

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

Preview Lab → · Contrast checker → · Palette generator →

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