#4152D4#4152D4

#4152D4 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.199 H 271.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4152D4
RGBrgb(65, 82, 212)
HSLhsl(233, 63%, 54%)
HSVhsv(233, 69%, 83%)
CMYKcmyk(69.3%, 61.3%, 0%, 16.9%)
CIE-LABlab(41.07, 36.13, -68.85)
CIE-LCHlch(41.07, 77.75, 297.69°)
OKLaboklab(50.63% 0.0054 -0.1987)
OKLCHoklch(50.63% 0.199 271.5)
XYZxyz(17.0769, 11.9102, 63.6735)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152D4 #D4C341
analogous
#419CD4 #4152D4 #7A41D4
triadic
#4152D4 #D44152 #52D441
tetradic
#4152D4 #D4419C #D4C341 #41D47A
square
#4152D4 #D4419C #D4C341 #41D47A
split-complementary
#4152D4 #D47A41 #9CD441
monochromatic
#1D287E #2838B0 #4152D4 #737FDF #A5ADEB

Accessibility & contrast

On white

6.21
#4152D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4152D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152D4
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152D4#FFFFFF#000000##FFFFFF
##4152D41.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4152d4;
/* rgb */ color: rgb(65, 82, 212);
/* oklch */ color: oklch(50.6% 0.199 271.5);
Tailwind
colors: {
  custom: {
    50: '#8882e2',
    500: '#4152d4',
    950: '#000000',
  },
}
SCSS
$custom: #4152d4;
$custom-light: #8882e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4152d4",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 233.061,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50632,
    "c": 0.19875,
    "h": 271.5
  },
  "luminance": 0.11912
}

Semantic roles & 50–950 ramp

primary
#4152D4
secondary
#D8D099
accent
#D342E6
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0A15
muted
#7E7C84

Preview Lab

Preview with #4152D4

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

Preview Lab → · Contrast checker → · Palette generator →

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