#5152DF#5152DF

#5152DF is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.5% C 0.209 H 276.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5152DF
RGBrgb(81, 82, 223)
HSLhsl(240, 69%, 60%)
HSVhsv(240, 64%, 87%)
CMYKcmyk(63.7%, 63.2%, 0%, 12.5%)
CIE-LABlab(42.93, 42.03, -72.07)
CIE-LCHlch(42.93, 83.42, 300.25°)
OKLaboklab(52.53% 0.0224 -0.2077)
OKLCHoklch(52.53% 0.209 276.1)
XYZxyz(19.7256, 13.1100, 71.2887)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152DF #DFDE51
analogous
#5199DF #5152DF #9751DF
triadic
#5152DF #DF5152 #52DF51
tetradic
#5152DF #DF5199 #DFDE51 #51DF97
square
#5152DF #DF5199 #DFDE51 #51DF97
split-complementary
#5152DF #DF9751 #99DF51
monochromatic
#1C1D99 #2627CD #5152DF #8585E9 #B8B9F2

Accessibility & contrast

On white

5.80
#5152DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5152DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152DF
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152DF#FFFFFF#000000##FFFFFF
##5152DF1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE3
Deuteranopia (green-blind)
#005FDC
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5152df;
/* rgb */ color: rgb(81, 82, 223);
/* oklch */ color: oklch(52.5% 0.209 276.1);
Tailwind
colors: {
  custom: {
    50: '#9183ea',
    500: '#5152df',
    950: '#000000',
  },
}
SCSS
$custom: #5152df;
$custom-light: #9183ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5152df",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 239.577,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.52525,
    "c": 0.20893,
    "h": 276.1
  },
  "luminance": 0.13112
}

Semantic roles & 50–950 ramp

primary
#5152DF
secondary
#E1E1AA
accent
#EB3CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5152DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva