#4152B7#4152B7

#4152B7 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.160 H 271.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#4152B7
RGBrgb(65, 82, 183)
HSLhsl(231, 48%, 49%)
HSVhsv(231, 64%, 72%)
CMYKcmyk(64.5%, 55.2%, 0%, 28.2%)
CIE-LABlab(38.86, 25.97, -55.61)
CIE-LCHlch(38.86, 61.37, 295.03°)
OKLaboklab(48.29% 0.0052 -0.1598)
OKLCHoklch(48.29% 0.16 271.9)
XYZxyz(13.7416, 10.5761, 46.1078)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152B7 #B7A641
analogous
#418DB7 #4152B7 #6B41B7
triadic
#4152B7 #B74152 #52B741
tetradic
#4152B7 #B7418D #B7A641 #41B76B
square
#4152B7 #B7418D #B7A641 #41B76B
split-complementary
#4152B7 #B76B41 #8DB741
monochromatic
#212A5D #313E8A #4152B7 #6B79CA #98A2DA

Accessibility & contrast

On white

6.74
#4152B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4152B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152B7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152B7#FFFFFF#000000##FFFFFF
##4152B71.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BA
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4152b7;
/* rgb */ color: rgb(65, 82, 183);
/* oklch */ color: oklch(48.3% 0.160 271.9);
Tailwind
colors: {
  custom: {
    50: '#8282cd',
    500: '#4152b7',
    950: '#000000',
  },
}
SCSS
$custom: #4152b7;
$custom-light: #8282cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4152b7",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 183
  },
  "hsl": {
    "h": 231.356,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48289,
    "c": 0.15985,
    "h": 271.9
  },
  "luminance": 0.10577
}

Semantic roles & 50–950 ramp

primary
#4152B7
secondary
#C6BE8E
accent
#C451D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4152B7

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

Preview Lab → · Contrast checker → · Palette generator →

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