#4152AB#4152AB

#4152AB is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.143 H 271.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#4152AB
RGBrgb(65, 82, 171)
HSLhsl(230, 45%, 46%)
HSVhsv(230, 62%, 67%)
CMYKcmyk(62%, 52%, 0%, 32.9%)
CIE-LABlab(38.02, 21.75, -49.88)
CIE-LCHlch(38.02, 54.41, 293.56°)
OKLaboklab(47.39% 0.0044 -0.1429)
OKLCHoklch(47.39% 0.143 271.8)
XYZxyz(12.5455, 10.0976, 39.8081)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152AB #AB9A41
analogous
#4187AB #4152AB #6541AB
triadic
#4152AB #AB4152 #52AB41
tetradic
#4152AB #AB4187 #AB9A41 #41AB65
square
#4152AB #AB4187 #AB9A41 #41AB65
split-complementary
#4152AB #AB6541 #87AB41
monochromatic
#1F2752 #303D7F #4152AB #6574C4 #919CD5

Accessibility & contrast

On white

6.95
#4152AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4152AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152AB
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152AB#FFFFFF#000000##FFFFFF
##4152AB1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4152ab;
/* rgb */ color: rgb(65, 82, 171);
/* oklch */ color: oklch(47.4% 0.143 271.8);
Tailwind
colors: {
  custom: {
    50: '#8082c5',
    500: '#4152ab',
    950: '#000000',
  },
}
SCSS
$custom: #4152ab;
$custom-light: #8082c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4152ab",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 171
  },
  "hsl": {
    "h": 230.377,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4739,
    "c": 0.14298,
    "h": 271.8
  },
  "luminance": 0.10099
}

Semantic roles & 50–950 ramp

primary
#4152AB
secondary
#C1B787
accent
#C053D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4152AB

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

Preview Lab → · Contrast checker → · Palette generator →

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