#5152FF#5152FF

#5152FF is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 55.3% C 0.248 H 274.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5152FF
RGBrgb(81, 82, 255)
HSLhsl(240, 100%, 66%)
HSVhsv(240, 68%, 100%)
CMYKcmyk(68.2%, 67.8%, 0%, 0%)
CIE-LABlab(45.64, 52.34, -85.64)
CIE-LCHlch(45.64, 100.37, 301.43°)
OKLaboklab(55.32% 0.0191 -0.2475)
OKLCHoklch(55.32% 0.248 274.4)
XYZxyz(24.4546, 15.0016, 96.1952)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152FF #FFFE51
analogous
#51A9FF #5152FF #A751FF
triadic
#5152FF #FF5152 #52FF51
tetradic
#5152FF #FF51A9 #FFFE51 #51FFA7
square
#5152FF #FF51A9 #FFFE51 #51FFA7
split-complementary
#5152FF #FFA751 #A9FF51
monochromatic
#0001D6 #1415FF #5152FF #8E8FFF #CBCCFF

Accessibility & contrast

On white

5.25
#5152FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5152FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152FF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152FF#FFFFFF#000000##FFFFFF
##5152FF1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0064FC
Tritanopia (blue-blind)
#0081A2
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5152ff;
/* rgb */ color: rgb(81, 82, 255);
/* oklch */ color: oklch(55.3% 0.248 274.4);
Tailwind
colors: {
  custom: {
    50: '#9784ff',
    500: '#5152ff',
    950: '#000000',
  },
}
SCSS
$custom: #5152ff;
$custom-light: #9784ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5152ff",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 255
  },
  "hsl": {
    "h": 239.655,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.5532,
    "c": 0.24822,
    "h": 274.4
  },
  "luminance": 0.15004
}

Semantic roles & 50–950 ramp

primary
#5152FF
secondary
#F3F2B9
accent
#E400E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5152FF

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

Preview Lab → · Contrast checker → · Palette generator →

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