#4152C5#4152C5

#4152C5 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.4% C 0.179 H 271.8°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#4152C5
RGBrgb(65, 82, 197)
HSLhsl(232, 53%, 51%)
HSVhsv(232, 67%, 77%)
CMYKcmyk(67%, 58.4%, 0%, 22.7%)
CIE-LABlab(39.90, 30.89, -62.10)
CIE-LCHlch(39.90, 69.36, 296.45°)
OKLaboklab(49.39% 0.0056 -0.1789)
OKLCHoklch(49.39% 0.179 271.8)
XYZxyz(15.2719, 11.1882, 54.1672)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152C5 #C5B441
analogous
#4194C5 #4152C5 #7241C5
triadic
#4152C5 #C54152 #52C541
tetradic
#4152C5 #C54194 #C5B441 #41C572
square
#4152C5 #C54194 #C5B441 #41C572
split-complementary
#4152C5 #C57241 #94C541
monochromatic
#212A6B #2F3D9A #4152C5 #707DD3 #9FA7E2

Accessibility & contrast

On white

6.49
#4152C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4152C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152C5
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152C5#FFFFFF#000000##FFFFFF
##4152C51.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#0058C3
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4152c5;
/* rgb */ color: rgb(65, 82, 197);
/* oklch */ color: oklch(49.4% 0.179 271.8);
Tailwind
colors: {
  custom: {
    50: '#8582d7',
    500: '#4152c5',
    950: '#000000',
  },
}
SCSS
$custom: #4152c5;
$custom-light: #8582d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4152c5",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 197
  },
  "hsl": {
    "h": 232.273,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49392,
    "c": 0.17896,
    "h": 271.8
  },
  "luminance": 0.1119
}

Semantic roles & 50–950 ramp

primary
#4152C5
secondary
#CEC794
accent
#CA4BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4152C5

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

Preview Lab → · Contrast checker → · Palette generator →

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