#4152CF#4152CF

#4152CF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.192 H 271.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#4152CF
RGBrgb(65, 82, 207)
HSLhsl(233, 60%, 53%)
HSVhsv(233, 69%, 81%)
CMYKcmyk(68.6%, 60.4%, 0%, 18.8%)
CIE-LABlab(40.67, 34.39, -66.62)
CIE-LCHlch(40.67, 74.98, 297.30°)
OKLaboklab(50.21% 0.0055 -0.1921)
OKLCHoklch(50.21% 0.192 271.6)
XYZxyz(16.4559, 11.6618, 60.4031)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152CF #CFBE41
analogous
#4199CF #4152CF #7741CF
triadic
#4152CF #CF4152 #52CF41
tetradic
#4152CF #CF4199 #CFBE41 #41CF77
square
#4152CF #CF4199 #CFBE41 #41CF77
split-complementary
#4152CF #CF7741 #99CF41
monochromatic
#1E2977 #2B3AA8 #4152CF #727EDB #A3ABE8

Accessibility & contrast

On white

6.30
#4152CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4152CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152CF
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152CF#FFFFFF#000000##FFFFFF
##4152CF1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#005ACD
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4152cf;
/* rgb */ color: rgb(65, 82, 207);
/* oklch */ color: oklch(50.2% 0.192 271.6);
Tailwind
colors: {
  custom: {
    50: '#8782df',
    500: '#4152cf',
    950: '#000000',
  },
}
SCSS
$custom: #4152cf;
$custom-light: #8782df;
$custom-dark: #000000;
JSON
{
  "hex": "#4152cf",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 232.817,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50212,
    "c": 0.19223,
    "h": 271.6
  },
  "luminance": 0.11663
}

Semantic roles & 50–950 ramp

primary
#4152CF
secondary
#D4CD97
accent
#D045E3
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4152CF

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

Preview Lab → · Contrast checker → · Palette generator →

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