#4152D3#4152D3

#4152D3 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.5% C 0.197 H 271.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#4152D3
RGBrgb(65, 82, 211)
HSLhsl(233, 62%, 54%)
HSVhsv(233, 69%, 83%)
CMYKcmyk(69.2%, 61.1%, 0%, 17.3%)
CIE-LABlab(40.99, 35.79, -68.40)
CIE-LCHlch(40.99, 77.20, 297.62°)
OKLaboklab(50.55% 0.0054 -0.1974)
OKLCHoklch(50.55% 0.197 271.6)
XYZxyz(16.9512, 11.8599, 63.0112)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152D3 #D3C241
analogous
#419BD3 #4152D3 #7941D3
triadic
#4152D3 #D34152 #52D341
tetradic
#4152D3 #D3419B #D3C241 #41D379
square
#4152D3 #D3419B #D3C241 #41D379
split-complementary
#4152D3 #D37941 #9BD341
monochromatic
#1D287D #2838AE #4152D3 #737FDF #A4ACEA

Accessibility & contrast

On white

6.23
#4152D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4152D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152D3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152D3#FFFFFF#000000##FFFFFF
##4152D31.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D7
Deuteranopia (green-blind)
#005AD0
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4152d3;
/* rgb */ color: rgb(65, 82, 211);
/* oklch */ color: oklch(50.5% 0.197 271.6);
Tailwind
colors: {
  custom: {
    50: '#8882e1',
    500: '#4152d3',
    950: '#000000',
  },
}
SCSS
$custom: #4152d3;
$custom-light: #8882e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4152d3",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 211
  },
  "hsl": {
    "h": 233.014,
    "s": 62.393,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50547,
    "c": 0.19745,
    "h": 271.6
  },
  "luminance": 0.11862
}

Semantic roles & 50–950 ramp

primary
#4152D3
secondary
#D7D099
accent
#D242E5
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4152D3

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

Preview Lab → · Contrast checker → · Palette generator →

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