#4152B2#4152B2

#4152B2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.9% C 0.153 H 271.8°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#4152B2
RGBrgb(65, 82, 178)
HSLhsl(231, 47%, 48%)
HSVhsv(231, 63%, 70%)
CMYKcmyk(63.5%, 53.9%, 0%, 30.2%)
CIE-LABlab(38.50, 24.21, -53.24)
CIE-LCHlch(38.50, 58.48, 294.45°)
OKLaboklab(47.91% 0.0049 -0.1528)
OKLCHoklch(47.91% 0.153 271.8)
XYZxyz(13.2305, 10.3716, 43.4155)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152B2 #B2A141
analogous
#418BB2 #4152B2 #6841B2
triadic
#4152B2 #B24152 #52B241
tetradic
#4152B2 #B2418B #B2A141 #41B268
square
#4152B2 #B2418B #B2A141 #41B268
split-complementary
#4152B2 #B26841 #8BB241
monochromatic
#202958 #313D85 #4152B2 #6877C8 #959FD8

Accessibility & contrast

On white

6.83
#4152B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4152B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152B2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152B2#FFFFFF#000000##FFFFFF
##4152B21.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1160B5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4152b2;
/* rgb */ color: rgb(65, 82, 178);
/* oklch */ color: oklch(47.9% 0.153 271.8);
Tailwind
colors: {
  custom: {
    50: '#8182ca',
    500: '#4152b2',
    950: '#000000',
  },
}
SCSS
$custom: #4152b2;
$custom-light: #8182ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4152b2",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 230.973,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47909,
    "c": 0.15288,
    "h": 271.8
  },
  "luminance": 0.10373
}

Semantic roles & 50–950 ramp

primary
#4152B2
secondary
#C4BB8B
accent
#C252D6
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4152B2

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

Preview Lab → · Contrast checker → · Palette generator →

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