#5152DB#5152DB

#5152DB is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.2% C 0.204 H 276.4°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5152DB
RGBrgb(81, 82, 219)
HSLhsl(240, 66%, 59%)
HSVhsv(240, 63%, 86%)
CMYKcmyk(63%, 62.6%, 0%, 14.1%)
CIE-LABlab(42.61, 40.72, -70.31)
CIE-LCHlch(42.61, 81.25, 300.08°)
OKLaboklab(52.19% 0.0227 -0.2026)
OKLCHoklch(52.19% 0.204 276.4)
XYZxyz(19.1927, 12.8968, 68.4820)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152DB #DBDA51
analogous
#5197DB #5152DB #9551DB
triadic
#5152DB #DB5152 #52DB51
tetradic
#5152DB #DB5197 #DBDA51 #51DB95
square
#5152DB #DB5197 #DBDA51 #51DB95
split-complementary
#5152DB #DB9551 #97DB51
monochromatic
#1E1F93 #292AC6 #5152DB #8484E5 #B6B7F0

Accessibility & contrast

On white

5.87
#5152DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5152DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152DB
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152DB#FFFFFF#000000##FFFFFF
##5152DB1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#00758F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5152db;
/* rgb */ color: rgb(81, 82, 219);
/* oklch */ color: oklch(52.2% 0.204 276.4);
Tailwind
colors: {
  custom: {
    50: '#9083e7',
    500: '#5152db',
    950: '#000000',
  },
}
SCSS
$custom: #5152db;
$custom-light: #9083e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5152db",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 239.565,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5219,
    "c": 0.20384,
    "h": 276.4
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#5152DB
secondary
#DFDFA9
accent
#E73FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152DB

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

Preview Lab → · Contrast checker → · Palette generator →

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